#12662: Improve doctest coverage for sage.rings.qqbar
----------------------------------+-----------------------------------------
       Reporter:  davidloeffler   |         Owner:  mvngu          
           Type:  defect          |        Status:  needs_work     
       Priority:  major           |     Milestone:  sage-5.0       
      Component:  doctest         |    Resolution:                 
       Keywords:                  |   Work issues:  doctest failure
Report Upstream:  N/A             |     Reviewers:                 
        Authors:  David Loeffler  |     Merged in:                 
   Dependencies:                  |      Stopgaps:                 
----------------------------------+-----------------------------------------
Changes (by JStarx):

  * status:  needs_review => needs_work
  * work_issues:  => doctest failure


Comment:

 I applied this to beta10, running OSX 10.6.8, and got the following two
 failures:

 {{{
 ~/sage-dev/devel/sage-main Starx$ ../../sage -t sage/rings/qqbar.py
 sage -t  "devel/sage-main/sage/rings/qqbar.py"
 **********************************************************************
 File "/Users/Starx/sage-dev/devel/sage-main/sage/rings/qqbar.py", line
 535:
     sage: sage.rings.qqbar._late_import()
 Exception raised:
     Traceback (most recent call last):
       File "/Users/Starx/sage-dev/local/bin/ncadoctest.py", line 1231, in
 run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/Users/Starx/sage-dev/local/bin/sagedoctest.py", line 38, in
 run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/Users/Starx/sage-dev/local/bin/ncadoctest.py", line 1172, in
 run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_1[2]>", line 1, in <module>
         sage.rings.qqbar._late_import()###line 535:
     sage: sage.rings.qqbar._late_import()
     AttributeError: 'module' object has no attribute '_late_import'
 **********************************************************************
 File "/Users/Starx/sage-dev/devel/sage-main/sage/rings/qqbar.py", line
 2128:
     sage: qq_generator.pari_field()
 Expected:
     Traceback (most recent call last):
     ...
     ValueError: No PARI field attached to trivial generator
 Got:
     Traceback (most recent call last):
       File "/Users/Starx/sage-dev/local/bin/ncadoctest.py", line 1231, in
 run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/Users/Starx/sage-dev/local/bin/sagedoctest.py", line 38, in
 run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/Users/Starx/sage-dev/local/bin/ncadoctest.py", line 1172, in
 run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_68[3]>", line 1, in <module>
         qq_generator.pari_field()###line 2128:
     sage: qq_generator.pari_field()
       File "/Users/Starx/sage-dev/local/lib/python/site-
 packages/sage/rings/qqbar.py", line 1670, in pari_field
         pari_pol = self._field.pari_polynomial("y")
       File "parent.pyx", line 875, in
 sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:6731)
       File "parent.pyx", line 326, in
 sage.structure.parent.getattr_from_other_class
 (sage/structure/parent.c:3247)
     AttributeError: 'RationalField_with_category' object has no attribute
 'pari_polynomial'
 **********************************************************************
 2 items had failures:
    1 of   5 in __main__.example_1
    1 of  12 in __main__.example_68
 ***Test Failed*** 2 failures.
 }}}

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