Opened 12 years ago

Last modified 8 years ago

#9827 closed defect

Intermittent doctest failure in sage/interfaces/ — at Initial Version

Reported by: mpatel Owned by: mvngu
Priority: major Milestone: sage-6.4
Component: interfaces Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


Reported by Justin C. Walker on 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.
sage -t  -long devel/sage/sage/interfaces/
File "/Users/Sage/sage-4.5.3.alpha1/devel/sage-main/sage/interfaces/", 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/", line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/Users/Sage/sage-4.5.3.alpha1/local/bin/", 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/", 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/", line 174, in displayhook
         print_obj(sys.stdout, obj)
       File "/Users/Sage/sage-4.5.3.alpha1/local/lib/python/site-packages/sage/misc/", line 142, in print_obj
         print >>out_stream, `obj`
       File "/Users/Sage/sage-4.5.3.alpha1/local/lib/python/site-packages/sage/interfaces/", line 1670, in __repr__
         s =  s.replace(self._name, self.__dict__['__custom_name'])
     KeyError: '__custom_name' 

See this reply (and possible follow-ups) for batch-testing results for The problem may be in SAGE_LOCAL/bin/sage-test and/or sage-doctest.

Distantly related: #1991.

Change History (0)

Note: See TracTickets for help on using tickets.