#9827: Intermittent doctest failure in sage/interfaces/psage.py
-----------------------+----------------------------------------------------
   Reporter:  mpatel   |       Owner:  mvngu
       Type:  defect   |      Status:  new  
   Priority:  major    |   Milestone:       
  Component:  doctest  |    Keywords:       
     Author:           |    Upstream:  N/A  
   Reviewer:           |      Merged:       
Work_issues:           |  
-----------------------+----------------------------------------------------
 Reported by Justin C. Walker on [http://groups.google.com/group/sage-
 release/browse_thread/thread/b2827cba9319bfed/4327cb6c3f565890#4327cb6c3f565890
 sage-release] (scroll down the thread for replies):
 {{{
 Upgraded from 4.5.3.a1, w/o problems.  Ran 'ptestlong', and one test
 failed.  Failure noted below.  I reran the test by hand and it passed.
 Mac OS X, 10.5.8, Dual Quad Xeon.
 }}}

 {{{
 #!python
 sage -t  -long devel/sage/sage/interfaces/psage.py
 **********************************************************************
 File "/Users/Sage/sage-4.5.3.alpha1/devel/sage-
 main/sage/interfaces/psage.py", line 35:
      sage: print "ignore this";  w       # random output
 Exception raised:
      Traceback (most recent call last):
        File "/Users/Sage/sage-4.5.3.alpha1/local/bin/ncadoctest.py", line
 1231, in run_one_test
          self.run_one_example(test, example, filename, compileflags)
        File "/Users/Sage/sage-4.5.3.alpha1/local/bin/sagedoctest.py", line
 38, in run_one_example
          OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
        File "/Users/Sage/sage-4.5.3.alpha1/local/bin/ncadoctest.py", line
 1172, in run_one_example
          compileflags, 1) in test.globs
        File "<doctest __main__.example_0[5]>", line 1, in <module>
          print "ignore this";  w       # random output###line 35:
      sage: print "ignore this";  w       # random output
        File "/Users/Sage/sage-4.5.3.alpha1/local/lib/python/site-
 packages/sage/misc/displayhook.py", line 174, in displayhook
          print_obj(sys.stdout, obj)
        File "/Users/Sage/sage-4.5.3.alpha1/local/lib/python/site-
 packages/sage/misc/displayhook.py", line 142, in print_obj
          print >>out_stream, `obj`
        File "/Users/Sage/sage-4.5.3.alpha1/local/lib/python/site-
 packages/sage/interfaces/expect.py", line 1670, in __repr__
          s =  s.replace(self._name, self.__dict__['__custom_name'])
      KeyError: '__custom_name'
 }}}

 See [http://groups.google.com/group/sage-
 release/browse_thread/thread/b2827cba9319bfed/14beffeda6842d4b#14beffeda6842d4b
 this reply] (and possible follow-ups) for batch-testing results for
 `psage.py`.  The problem may be in `SAGE_LOCAL/bin/sage-test` and/or
 `sage-doctest`.

 Distantly related: #1991.

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