Ticket #1942: test_sage0.log

File test_sage0.log, 5.1 KB (added by jsp, 13 years ago)

This is ./sage -t -verbose of .../sage0.py on Fedora7

Line 
1sage -t -verbose devel/sage-main/sage/interfaces/sage0.py   [?1034hTrying:
2    s = Sage()###line 43:_sage_    >>> s = Sage()
3Expecting nothing
4ok
5Trying:
6    a = s(Integer(2))###line 46:_sage_    >>> a = s(2)
7Expecting nothing
8ok
9Trying:
10    a**Integer(3)###line 47:_sage_    >>> a^3
11Expecting:
12    8
13ok
14Trying:
15    V = s('QQ^4')###line 51:_sage_    >>> V = s('QQ^4')
16Expecting nothing
17ok
18Trying:
19    V.gens()###line 52:_sage_    >>> V.gens()
20Expecting:
21    ((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1))
22ok
23Trying:
24    type(V)###line 58:_sage_    >>> type(V)
25Expecting:
26    <class 'sage.interfaces.sage0.SageElement'>
27ok
28Trying:
29    V.parent()###line 60:_sage_    >>> V.parent()
30Expecting:
31    Sage
32ok
33Trying:
34    g = V.gen(0);  g###line 62:_sage_    >>> g = V.0;  g
35Expecting:
36    (1, 0, 0, 0)
37ok
38Trying:
39    g.parent()###line 64:_sage_    >>> g.parent()
40Expecting:
41    Sage
42ok
43Trying:
44    s('%s.parent()'%g.name())###line 69:_sage_    >>> s('%s.parent()'%g.name())
45Expecting:
46    Vector space of dimension 4 over Rational Field
47ok
48Trying:
49    x = Integer(10)###line 73:_sage_    >>> x = 10
50Expecting nothing
51ok
52Trying:
53    s('x = 5')###line 74:_sage_    >>> s('x = 5')
54Expecting:
55    5
56ok
57Trying:
58    x###line 76:_sage_    >>> x
59Expecting:
60    10
61ok
62Trying:
63    s('x')###line 78:_sage_    >>> s('x')
64Expecting:
65    5
66ok
67Trying:
68    s3 = s('Sage()')###line 83:_sage_    >>> s3 = s('Sage()')
69Expecting nothing
70ok
71Trying:
72    a = s3(Integer(10))###line 84:_sage_    >>> a = s3(10)
73Expecting nothing
74ok
75Trying:
76    a###line 85:_sage_    >>> a
77Expecting:
78    10
79ok
80Trying:
81    _ = s.eval('%s.eval("x=8")'%s3.name())###line 90:_sage_    >>> _ = s.eval('%s.eval("x=8")'%s3.name())
82Expecting nothing
83ok
84Trying:
85    s3('"x"')###line 91:_sage_    >>> s3('"x"')
86Expecting:
87    8
88ok
89Trying:
90    s('x')###line 93:_sage_    >>> s('x')
91Expecting:
92    5
93ok
94Trying:
95    x###line 95:_sage_    >>> x
96Expecting:
97    10
98ok
99Trying:
100    _= sage0.cputime()     # random output###line 143:_sage_    >>> _= sage0.cputime()     # random output
101Expecting nothing
102**********************************************************************
103File ".doctest_sage0.py", line 90, in __main__.example_2
104Failed example:
105    _= sage0.cputime()     # random output###line 143:_sage_    >>> _= sage0.cputime()     # random output
106Exception raised:
107    Traceback (most recent call last):
108      File "/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/doctest.py", line 1212, in __run
109        compileflags, 1) in test.globs
110      File "<doctest __main__.example_2[0]>", line 1, in <module>
111        _= sage0.cputime()     # random output###line 143:_sage_    >>> _= sage0.cputime()     # random output
112      File "/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/site-packages/sage/interfaces/sage0.py", line 150, in cputime
113        return eval(self.eval('cputime(%s)'%t))
114      File "<string>", line 1
115         [0;31m [0m1.3227979999999999
116         ^
117     SyntaxError: invalid syntax
118Trying:
119    sage0('factor(2^157-1)')###line 145:_sage_    >>> sage0('factor(2^157-1)')
120Expecting:
121    852133201 * 60726444167 * 1654058017289 * 2134387368610417
122ok
123Trying:
124    _= sage0.cputime()     # random output###line 147:_sage_    >>> _= sage0.cputime()     # random output
125Expecting nothing
126**********************************************************************
127File ".doctest_sage0.py", line 95, in __main__.example_2
128Failed example:
129    _= sage0.cputime()     # random output###line 147:_sage_    >>> _= sage0.cputime()     # random output
130Exception raised:
131    Traceback (most recent call last):
132      File "/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/doctest.py", line 1212, in __run
133        compileflags, 1) in test.globs
134      File "<doctest __main__.example_2[2]>", line 1, in <module>
135        _= sage0.cputime()     # random output###line 147:_sage_    >>> _= sage0.cputime()     # random output
136      File "/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/site-packages/sage/interfaces/sage0.py", line 150, in cputime
137        return eval(self.eval('cputime(%s)'%t))
138      File "<string>", line 1
139         [0;31m [0m1.7007409999999998
140         ^
141     SyntaxError: invalid syntax
142Trying:
143    sr = mq.SR(allow_zero_inversions=True)###line 284:_sage_    >>> sr = mq.SR(allow_zero_inversions=True)
144Expecting nothing
145ok
146Trying:
147    F,s = sr.polynomial_system()###line 285:_sage_    >>> F,s = sr.polynomial_system()
148Expecting nothing
149ok
150Trying:
151    F == sage0(F)._sage_()###line 286:_sage_    >>> F == sage0(F)._sage_()
152Expecting:
153    True
154ok
1557 items had no tests:
156    __main__
157    __main__.example_0
158    __main__.example_3
159    __main__.example_4
160    __main__.example_5
161    __main__.example_6
162    __main__.example_8
1632 items passed all tests:
164  21 tests in __main__.example_1
165   3 tests in __main__.example_7
166**********************************************************************
1671 items had failures:
168   2 of   3 in __main__.example_2
16927 tests in 10 items.
17025 passed and 2 failed.
171***Test Failed*** 2 failures.
172
173         [6.7 s]
174exit code: 256
175 
176----------------------------------------------------------------------
177The following tests failed:
178
179
180        sage -t -verbose devel/sage-main/sage/interfaces/sage0.py
181Total time for all tests: 6.7 seconds