#19244: Broken doctest in src/sage/categories/fields.py
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  blocker            |    Milestone:  sage-6.9
      Component:  memleak            |   Resolution:
       Keywords:  random_fail        |    Merged in:
        Authors:  Simon King         |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/SimonKing/broken_doctest_in_src_sage_categories_fields_py|  
65ece650612dfb15bd1139245f9ac72bd94c9b68
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 Replying to [comment:7 jdemeyer]:
 > What's the point of this?
 > {{{
 > #!diff
 > +            sage: len([X for X in gc.get_objects() if isinstance(X,
 sage.rings.finite_rings.integer_mod_ring.IntegerModRing_generic)]) > n
 > +            True
 > }}}

 At time t, we determine the number n of fields in cache. At time t+2 we
 test that the number of fields in cache is again n. With the above line, I
 want to demonstrate that at time t+1, we really have more rings in cache
 than at time t. Otherwise, we actually haven't shown that a garbage
 collection has happened between time t+1 and time t+2. And that's the aim
 of the whole test: We have to show that at some point a ring exists and
 later it has vanished. The line shows that the ring exists.

--
Ticket URL: <http://trac.sagemath.org/ticket/19244#comment:8>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to