Opened 12 years ago
Last modified 8 years ago
#9827 closed defect
Intermittent doctest failure in sage/interfaces/psage.py — 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: |
Description
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/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 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.
Note: See
TracTickets for help on using
tickets.