#12415: Update doctesting framework
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
       Reporter:  robertwb                                                      
                                                                                
                |         Owner:  mvngu         
           Type:  enhancement                                                   
                                                                                
                |        Status:  needs_work    
       Priority:  major                                                         
                                                                                
                |     Milestone:  sage-5.7      
      Component:  doctest                                                       
                                                                                
                |    Resolution:                
       Keywords:                                                                
                                                                                
                |   Work issues:                
Report Upstream:  N/A                                                           
                                                                                
                |     Reviewers:  Jeroen Demeyer
        Authors:  David Roe, Robert Bradshaw                                    
                                                                                
                |     Merged in:                
   Dependencies:  #13147,#13146, #13145, #12723, #12392, #12393, #12395, 
#12396, #12397, #12381, #12382, #12383, #12384, #11871, #13195, #13121, #13748, 
#13899, #12719, #5155  |      Stopgaps:                
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Comment (by jdemeyer):

 More doctest framework doctest failures:
 {{{
 sage -t --long devel/sage/sage/doctest/control.py
 **********************************************************************
 File "devel/sage/sage/doctest/control.py", line 566, in
 sage.doctest.control.DocTestController.cleanup
 Failed example:
     DC.run()
 Exception raised:
     Traceback (most recent call last):
       File "/release/sage-5.7.beta3-doctest/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 595, in _run
         self.execute(example, compiled, test.globs)
       File "/release/sage-5.7.beta3-doctest/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 980, in execute
         exec compiled in globs
       File "<doctest sage.doctest.control.DocTestController.cleanup[8]>",
 line 1, in <module>
         DC.run()
       File "/release/sage-5.7.beta3-doctest/local/lib/python2.7/site-
 packages/sage/doctest/control.py", line 725, in run
         self.test_safe_directory()
       File "/release/sage-5.7.beta3-doctest/local/lib/python2.7/site-
 packages/sage/doctest/control.py", line 270, in test_safe_directory
         .format(os.getcwd()))
     RuntimeError: refusing to run doctests from the current directory
 '/home/jdemeyer/.sage/temp/sage.math.washington.edu/10273/dir_2B_1k4/test'
 since untrusted users could put files in this directory, making it unsafe
 to run Sage code from
 **********************************************************************
 }}}

 Then there is a bunch of
 {{{
 /release/sage-5.7.beta3-doctest/local/lib/python2.7/site-
 packages/Cython/Build/Dependencies.py:229: UnicodeWarning: Unicode equal
 comparis
 on failed to convert both arguments to Unicode - interpreting them as
 being unequal
   if code[q-1] == u'\\':
 }}}
 in between the tests, for example:
 {{{
 sage -t --long devel/sage/sage/combinat/species/empty_species.py
     [38 tests, 0.1 s]
 sage -t --long devel/sage/sage/combinat/sf/kfpoly.py
     [60 tests, 0.1 s]
 sage -t --long devel/sage/sage/combinat/words/shuffle_product.py
     [63 tests, 0.1 s]
 /release/sage-5.7.beta3-doctest/local/lib/python2.7/site-
 packages/Cython/Build/Dependencies.py:229: UnicodeWarning: Unicode equal
 comparis
 on failed to convert both arguments to Unicode - interpreting them as
 being unequal
   if code[q-1] == u'\\':
 sage -t --long devel/sage/sage/categories/algebra_modules.py
     [9 tests, 0.1 s]
 sage -t --long devel/sage/sage/numerical/backends/ppl_backend.pyx
     [167 tests, 0.1 s]
 sage -t --long devel/sagenb-main/sagenb/misc/misc.py
     [36 tests, 0.0 s]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12415#comment:160>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to