#9449: The summary printed after running doctests is inaccurate.
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |       Owner:  mvngu   
       Type:  defect    |      Status:  new     
   Priority:  critical  |   Milestone:  sage-4.5
  Component:  doctest   |    Keywords:          
     Author:            |    Upstream:  N/A     
   Reviewer:            |      Merged:          
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by drkirkby):

 Here's the results after applying #8641, #9243, #9316. As you can see,
 there are still tests which fail with 0 doctest failures (These results
 are again on the Sun T5240 t2.math.washington.edu, which is the same as
 before).

 {{{

 sage -t  -long devel/sage/sage/modular/ssmod/ssmod.py
          [3001.1 s]
 sage -t  -long
 devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py
          [3137.3 s]

 ----------------------------------------------------------------------

 The following tests failed:

         sage -t  -long devel/sage/doc/en/constructions/number_fields.rst #
 0 doctests failed
         sage -t  -long
 devel/sage/sage/categories/examples/hopf_algebras_with_basis.py # 0
 doctests failed
         sage -t  -long devel/sage/sage/libs/galrep/wrapper.pyx # 0
 doctests failed
         sage -t  -long devel/sage/sage/parallel/decorate.py # 1 doctests
 failed
 ----------------------------------------------------------------------
 Total time for all tests: 4264.8 seconds
 }}}



 Here's the first one, which fails, but with 0 recorded failures.

 {{{
 sage -t  -long devel/sage/doc/en/constructions/number_fields.rst
 python: can't open file
 '/rootpool2/local/kirkby/.sage//tmp/number_fields.py': [Errno 2] No such
 file or directory

          [1.9 s]
 }}}

 Here's the second recorded failure

 {{{
 sage -t  -long
 devel/sage/sage/categories/examples/hopf_algebras_with_basis.py
 python: can't open file
 '/rootpool2/local/kirkby/.sage//tmp/hopf_algebras_with_basis.py': [Errno
 2] No such file or directory

          [1.7 s]
 }}}

 The third failure is where Sage crashed:

 {{{
 sage -t  -long devel/sage/sage/libs/galrep/wrapper.pyx


 ------------------------------------------------------------
 Unhandled SIGBUS: A bus error occurred in Sage.
 This probably occurred because a *compiled* component
 of Sage has a bug in it (typically accessing invalid memory)
 or is not properly wrapped with _sig_on, _sig_off.
 You might want to run Sage under gdb with 'sage -gdb' to debug this.
 Sage will now terminate (sorry).
 ------------------------------------------------------------


          [21.5 s]
 }}}

 This is recorded as 0 failures, despite the fact Sage crashed.

 The only test that is recorded as a failure, with a non-zero number of
 failures, is the last test

 {{{
 sage -t  -long devel/sage/sage/parallel/decorate.py
 **********************************************************************
 File "/tmp/kirkby/sage-4.5.alpha4/devel/sage-
 testing/sage/parallel/decorate.py", line 152:
     sage: v = list(f([1,2,4])); v.sort(); v
 Exception raised:
     Traceback (most recent call last):
       File "/tmp/kirkby/sage-4.5.alpha4/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/tmp/kirkby/sage-4.5.alpha4/local/bin/sagedoctest.py", line
 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/tmp/kirkby/sage-4.5.alpha4/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_4[9]>", line 1, in <module>
         v = list(f([Integer(1),Integer(2),Integer(4)])); v.sort();
 v###line 152:
     sage: v = list(f([1,2,4])); v.sort(); v
       File "/tmp/kirkby/sage-4.5.alpha4/local/lib/python/site-
 packages/sage/parallel/multiprocessing_sage.py", line 64, in parallel_iter
         p = Pool(processes)
       File
 "/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/multiprocessing/__init__.py",
 line 227, in Pool
         return Pool(processes, initializer, initargs)
       File
 "/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/multiprocessing/pool.py",
 line 104, in __init__
         w.start()
       File
 "/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/multiprocessing/process.py",
 line 104, in start
         self._popen = Popen(self)
       File
 "/tmp/kirkby/sage-4.5.alpha4/local/lib/python2.6/multiprocessing/forking.py",
 line 94, in __init__
         self.pid = os.fork()
     OSError: [Errno 12] Not enough space
 **********************************************************************
 1 items had failures:
    1 of  12 in __main__.example_4
 ***Test Failed*** 1 failures.
 For whitespace errors, see the file
 /rootpool2/local/kirkby/.sage//tmp/.doctest_decorate.py
          [51.3 s]
 }}}

 Dave

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