#9003: Doctest (or whatever???) failure on Mac OS X in free_module.py
------------------------+---------------------------------------------------
   Reporter:  kcrisman  |       Owner:  tbd         
       Type:  defect    |      Status:  needs_review
   Priority:  major     |   Milestone:  sage-4.4.3  
  Component:  doctest   |    Keywords:              
     Author:            |    Upstream:  N/A         
   Reviewer:            |      Merged:              
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by craigcitro):

 Replying to [comment:25 wjp]:
 > If I understand it correctly, the only reason that it works on other
 systems is that the garbage collector deletes an object ({{{QQ^7}}})
 between the two doctests. I think it would be safer not to depend on that.

 Actually, I don't know that it's the garbage collector:

 {{{
 sage: V = QQ^7
 sage: V.rename('foo')
 sage: V
 foo
 sage: del V
 sage: import gc
 sage: gc.collect()
 54
 sage: QQ^7
 foo
 }}}

 Of course, maybe I'm tricking myself because something else is holding
 onto a non-weakref that prevents the stored `V` from being collected?

 That said, I think the answer to Leif's question above is "yes and no." I
 think this *will* fix the issue for now, which is good. On the other hand,
 I think there still are weirdnesses lurking that should be investigated
 ... or at least explained to me if they're already understood. `;)`

 It can't _just_ be the garbage collector -- the fact that the version
 strings were futzing with it means that it somehow has to intersect with
 weirdness related to pickling ... maybe because of the pickle jar? In any
 event, there's some weird behavior, and we should open a ticket to ferret
 out that weird behavior. Once that's open, I say positive review and merge
 Willem Jan's patch ...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9003#comment:26>
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