William Stein wrote:
[...]
> 
> Could you try changing that line 150 of sage/interfaces/sage0.py to
>           return eval(self.eval('cputime(%s)'%t).strip())
> then do "sage -br" and retry the test and see if it works on your machine?
> Let me know.
> 

Removing 
/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/site-packages/sage-0.0.0-py2.5.egg-info
Writing 
/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/site-packages/sage-0.0.0-py2.5.egg-info
----------------------------------------------------------------------
| SAGE Version 2.10.1.rc0, Release Date: 2008-01-26                  |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------


sage:
Exiting SAGE (CPU time 0m0.00s, Wall time 0m5.10s).
[EMAIL PROTECTED] sage-2.10.1.rc0]$ ./sage -t  
devel/sage-main/sage/interfaces/sage0.py 2>&1 | tee -a test_sage0.log
sage -t  devel/sage-main/sage/interfaces/sage0.py           
**********************************************************************
File "sage0.py", line 143:
     sage: _= sage0.cputime()     # random output
Exception raised:
     Traceback (most recent call last):
       File 
"/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/doctest.py", line 
1212, in __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_2[0]>", line 1, in <module>
         _= sage0.cputime()     # random output###line 143:
     sage: _= sage0.cputime()     # random output
       File 
"/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/site-packages/sage/interfaces/sage0.py",
 line 150, in cputime
         return eval(self.eval('cputime(%s)'%t).strip())
       File "<string>", line 1
           1.3517939999999999
          ^
      SyntaxError: invalid syntax
**********************************************************************
File "sage0.py", line 147:
     sage: _= sage0.cputime()     # random output
Exception raised:
     Traceback (most recent call last):
       File 
"/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/doctest.py", line 
1212, in __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_2[2]>", line 1, in <module>
         _= sage0.cputime()     # random output###line 147:
     sage: _= sage0.cputime()     # random output
       File 
"/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/site-packages/sage/interfaces/sage0.py",
 line 150, in cputime
         return eval(self.eval('cputime(%s)'%t).strip())
       File "<string>", line 1
           1.7347350000000001
          ^
      SyntaxError: invalid syntax
**********************************************************************
1 items had failures:
    2 of   3 in __main__.example_2
***Test Failed*** 2 failures.
For whitespace errors, see the file .doctest_sage0.py
          [8.0 s]
exit code: 256

----------------------------------------------------------------------
The following tests failed:


         sage -t  devel/sage-main/sage/interfaces/sage0.py
Total time for all tests: 8.0 seconds


> Also, could you try replacing the line 150 by
>           s = self.eval('cputime(%s)'%t)
>           print "'%s'"%s
>           return 0
> in case my above suggestion doesn't work, and report what gets printed.
> 

Exiting SAGE (CPU time 0m0.00s, Wall time 0m8.03s).
[EMAIL PROTECTED] sage-2.10.1.rc0]$ ./sage -t  
devel/sage-main/sage/interfaces/sage0.py 2>&1 | tee -a test_sage0.log
sage -t  devel/sage-main/sage/interfaces/sage0.py           
**********************************************************************
File "sage0.py", line 143:
     sage: _= sage0.cputime()     # random output
Expected nothing
Got:
     ' 1.360792
     '
**********************************************************************
File "sage0.py", line 147:
     sage: _= sage0.cputime()     # random output
Expected nothing
Got:
     ' 1.7347349999999999
     '
**********************************************************************
1 items had failures:
    2 of   3 in __main__.example_2
***Test Failed*** 2 failures.
For whitespace errors, see the file .doctest_sage0.py
          [7.0 s]
exit code: 256

----------------------------------------------------------------------
The following tests failed:


         sage -t  devel/sage-main/sage/interfaces/sage0.py
Total time for all tests: 7.0 seconds
[EMAIL PROTECTED] sage-2.10.1.rc0]$


Jaap


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to