Opened 12 years ago

Last modified 8 years ago

#9827 closed defect

Intermittent doctest failure in sage/interfaces/psage.py — at Version 4

Reported by: mpatel Owned by: was
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

Description (last modified by jdemeyer)

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.

Distantly related: #1991.

Change History (4)

comment:1 Changed 12 years ago by mpatel

Near the top of sage/interfaces/psage.py is a possibly relevant note:

BUG -- currently non-idle PSage subprocesses do not stop when
\sage exits.  I would very much like to fix this but don't know how.

comment:2 Changed 9 years ago by roed

Is this still relevant after #12415?

comment:3 Changed 9 years ago by roed

  • Component changed from doctest to interfaces
  • Owner changed from mvngu to was

I don't think this has to do with doctesting...

comment:4 Changed 9 years ago by jdemeyer

  • Description modified (diff)
  • Milestone set to sage-5.10
Note: See TracTickets for help on using tickets.