#9446: misc/trace.py doctest failure on t2 (solaris)
--------------------------+-------------------------------------------------
   Reporter:  jhpalmieri  |       Owner:  mvngu   
       Type:  defect      |      Status:  new     
   Priority:  minor       |   Milestone:  sage-4.6
  Component:  doctest     |    Keywords:          
     Author:              |    Upstream:  N/A     
   Reviewer:              |      Merged:          
Work_issues:              |  
--------------------------+-------------------------------------------------
Changes (by mpatel):

 * cc: justin (added)
  * owner:  jason => mvngu
  * component:  misc => doctest


Old description:

> With Sage 4.5.alpha4 on t2.math.washington.edu (solaris):
> {{{
> sage -t  -long devel/sage/sage/misc/trace.py
> **********************************************************************
> File "/home/palmieri/t2/sage-4.5.alpha4/devel/sage-
> main/sage/misc/trace.py", line 54:
>     sage: _ = s.expect('100')
> Exception raised:
>     Traceback (most recent call last):
>       File "/home/palmieri/t2/sage-4.5.alpha4/local/bin/ncadoctest.py",
> line 1231, in run_one_test
>         self.run_one_example(test, example, filename, compileflags)
>       File "/home/palmieri/t2/sage-4.5.alpha4/local/bin/sagedoctest.py",
> line 38, in run_one_examp\
> le
>         OrigDocTestRunner.run_one_example(self, test, example, filename,
> compileflags)
>       File "/home/palmieri/t2/sage-4.5.alpha4/local/bin/ncadoctest.py",
> line 1172, in run_one_exam\
> ple
>         compileflags, 1) in test.globs
>       File "<doctest __main__.example_1[6]>", line 1, in <module>
>         _ = s.expect('100')###line 54:
>     sage: _ = s.expect('100')
>       File "/home/palmieri/t2/sage-4.5.alpha4/local/lib/python/site-
> packages/pexpect.py", line 912\
> , in expect
>         return self.expect_list(compiled_pattern_list, timeout,
> searchwindowsize)
>       File "/home/palmieri/t2/sage-4.5.alpha4/local/lib/python/site-
> packages/pexpect.py", line 989\
> , in expect_list
>         raise TIMEOUT (str(e) + '\n' + str(self))
>     TIMEOUT: Timeout exceeded in read_nonblocking().
>     <pexpect.spawn instance at 0x2c005d0>
>     version: 2.0 ($Revision: 1.151 $)
>     command: /home/palmieri/t2/sage-4.5.alpha4/sage
>     args: ['/home/palmieri/t2/sage-4.5.alpha4/sage']
>     patterns:
>         100
>     buffer (last 100 chars):
>     before (last 100 chars):                       *^M
> **********************************************************************^M
>     c^M
>
>     after: <class 'pexpect.TIMEOUT'>
>     match: None
>     match_index: None
>     exitstatus: None
>     flag_eof: 0
>     pid: 22383
>     child_fd: 4
>     timeout: 30
>     delimiter: <class 'pexpect.EOF'>
>     logfile: None
>     maxread: 2000
>     searchwindowsize: None
>     delaybeforesend: 0.1
> **********************************************************************
> File "/home/palmieri/t2/sage-4.5.alpha4/devel/sage-
> main/sage/misc/trace.py", line 61:
>     sage: print s.before[s.before.find('-'):]
> Expected:
>     ---...
>     ipdb> c
>     2 * 5
> Got:
> ----------------------------------------------------------------------^M
>     | Sage Version 4.5.alpha4, Release Date: 2010-07-06
> |^M
>     | Type notebook() for the GUI, and license() for information.
> |^M
> ----------------------------------------------------------------------^M
> **********************************************************************^M
>     *
> *^M
>     * Warning: this is a prerelease version, and it may be unstable.
> *^M
>     *
> *^M
> **********************************************************************^M
>     c^M
>     <BLANKLINE>
> **********************************************************************
> }}}
> Is this due to something timing out?

New description:

 With Sage 4.5.alpha4 on t2.math.washington.edu (solaris):
 {{{
 #!python
 sage -t  -long devel/sage/sage/misc/trace.py
 **********************************************************************
 File "/home/palmieri/t2/sage-4.5.alpha4/devel/sage-
 main/sage/misc/trace.py", line 54:
     sage: _ = s.expect('100')
 Exception raised:
     Traceback (most recent call last):
       File "/home/palmieri/t2/sage-4.5.alpha4/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/home/palmieri/t2/sage-4.5.alpha4/local/bin/sagedoctest.py",
 line 38, in run_one_examp\
 le
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/home/palmieri/t2/sage-4.5.alpha4/local/bin/ncadoctest.py",
 line 1172, in run_one_exam\
 ple
         compileflags, 1) in test.globs
       File "<doctest __main__.example_1[6]>", line 1, in <module>
         _ = s.expect('100')###line 54:
     sage: _ = s.expect('100')
       File "/home/palmieri/t2/sage-4.5.alpha4/local/lib/python/site-
 packages/pexpect.py", line 912\
 , in expect
         return self.expect_list(compiled_pattern_list, timeout,
 searchwindowsize)
       File "/home/palmieri/t2/sage-4.5.alpha4/local/lib/python/site-
 packages/pexpect.py", line 989\
 , in expect_list
         raise TIMEOUT (str(e) + '\n' + str(self))
     TIMEOUT: Timeout exceeded in read_nonblocking().
     <pexpect.spawn instance at 0x2c005d0>
     version: 2.0 ($Revision: 1.151 $)
     command: /home/palmieri/t2/sage-4.5.alpha4/sage
     args: ['/home/palmieri/t2/sage-4.5.alpha4/sage']
     patterns:
         100
     buffer (last 100 chars):
     before (last 100 chars):                       *^M
 **********************************************************************^M
     c^M

     after: <class 'pexpect.TIMEOUT'>
     match: None
     match_index: None
     exitstatus: None
     flag_eof: 0
     pid: 22383
     child_fd: 4
     timeout: 30
     delimiter: <class 'pexpect.EOF'>
     logfile: None
     maxread: 2000
     searchwindowsize: None
     delaybeforesend: 0.1
 **********************************************************************
 File "/home/palmieri/t2/sage-4.5.alpha4/devel/sage-
 main/sage/misc/trace.py", line 61:
     sage: print s.before[s.before.find('-'):]
 Expected:
     ---...
     ipdb> c
     2 * 5
 Got:
 ----------------------------------------------------------------------^M
     | Sage Version 4.5.alpha4, Release Date: 2010-07-06
 |^M
     | Type notebook() for the GUI, and license() for information.
 |^M
 ----------------------------------------------------------------------^M
 **********************************************************************^M
     *
 *^M
     * Warning: this is a prerelease version, and it may be unstable.
 *^M
     *
 *^M
 **********************************************************************^M
     c^M
     <BLANKLINE>
 **********************************************************************
 }}}
 Is this due to something timing out?

--

Comment:

 Justin Walker has [http://groups.google.com/group/sage-
 release/msg/fe720bce3f933171 seen this problem with 4.6.alpha2] on two OS
 X 10.6.4 systems (Dual Quad Xeon, Core i7):
 {{{
 #!python
 sage -t  -long devel/sage/sage/misc/trace.py
 **********************************************************************
 File "/Users/Sage/sage-4.6.alpha0/devel/sage-main/sage/misc/trace.py",
 line 61:
     sage: print s.before[s.before.find('-'):]
 Expected:
     ---...
     ipdb> c
     2 * 5
 Got:
     -bit mode
     Creating SAGE_LOCAL/lib/sage-64.txt since it does not exist
     Detected SAGE64 flag
     Building Sage on OS X in 64-bit mode
     ----------------------------------------------------------------------
     | Sage Version 4.6.alpha2, Release Date: 2010-09-29                  |
     | Type notebook() for the GUI, and license() for information.        |
     ----------------------------------------------------------------------
     **********************************************************************
     *                                                                    *
     * Warning: this is a prerelease version, and it may be unstable.     *
     *                                                                    *
     **********************************************************************
     trace('print factor(10)'); print 3+97
     s
     c
     sage: trace('print factor(10)'); print 3+97
     > <string>(1)<module>()

     ipdb> s
     --Call--
     > /Users/Sage/sage-4.6.alpha0/local/lib/python2.6/site-
 packages/sage/rings/arith.py(2153)factor()
        2152
     -> 2153 def factor(n, proof=None, int_=False, algorithm='pari',
 verbose=0, **kwds):
        2154     """

     ipdb> c
     2 * 5
     <BLANKLINE>
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9446#comment:5>
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