#12616: The LP are not deallocated because of cyclic references !
----------------------------------+-----------------------------------------
   Reporter:  ncohen              |          Owner:  ncohen       
       Type:  defect              |         Status:  needs_review 
   Priority:  major               |      Milestone:  sage-5.0     
  Component:  linear programming  |       Keywords:               
Work_issues:  Add doctest         |       Upstream:  N/A          
   Reviewer:                      |         Author:  Nathann Cohen
     Merged:                      |   Dependencies:               
----------------------------------+-----------------------------------------
Changes (by ncohen):

  * status:  needs_work => needs_review


Comment:

 Helloooooooo !!!

 Thank you for this doctest ! Here is an updated patch which contains it.
 On an unpatched Sage it produces
 {{{
 **********************************************************************
 File "/home/ncohen/.Sage/devel/sage-0/sage/numerical/mip.pyx", line 221:
     sage: len([x for x in gc.get_objects() if isinstance(x,C)])
 Expected:
     0
 Got:
     1
 **********************************************************************
 1 items had failures:
    1 of  12 in __main__.example_2
 }}}
 And once the patch is applied :

 {{{
 sage -t  "devel/sage-0/sage/numerical/mip.pyx"
          [1.6 s]

 ----------------------------------------------------------------------
 All tests passed!
 }}}

 Nathann

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12616#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to