Skip to content

Commit ad01c6d

Browse files
tornariavidelec
authored andcommitted
make tests generic so they work with pari-2.13 and pari-2.15
1 parent 05e0f1c commit ad01c6d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cypari2/closure.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ cpdef Gen objtoclosure(f):
208208
>>> mul([1], [2])
209209
Traceback (most recent call last):
210210
...
211-
PariError: call_python: incorrect type in qfbcomp (t_VEC)
211+
PariError: call_python: ...
212212
"""
213213
if not callable(f):
214214
raise TypeError("argument to objtoclosure() must be callable")

cypari2/handle_error.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class PariError(RuntimeError):
123123
>>> pari('!@#$%^&*()')
124124
Traceback (most recent call last):
125125
...
126-
PariError: syntax error, unexpected invalid token
126+
PariError: syntax error, unexpected ...
127127
"""
128128
return self.errtext().rstrip(" .:")
129129

cypari2/pari_instance.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,9 +1325,9 @@ cdef class Pari(Pari_auto):
13251325
>>> pari = cypari2.Pari()
13261326
>>> x = pari('x')
13271327
>>> pari.genus2red([-5*x**5, x**3 - 2*x**2 - 2*x + 1])
1328-
[1416875, [2, -1; 5, 4; 2267, 1], [-6*x^5 + 2*x^3 - x, x^3 + 1], [[2, [2, [Mod(1, 2)]], []], [5, [1, []], ["[V] page 156", [3]]], [2267, [2, [Mod(432, 2267)]], ["[I{1-0-0}] page 170", []]]]]
1328+
[1416875, [2, -1; 5, 4; 2267, 1], ..., [[2, [2, [Mod(1, 2)]], []], [5, [1, []], ["[V] page 156", [3]]], [2267, [2, [Mod(432, 2267)]], ["[I{1-0-0}] page 170", []]]]]
13291329
>>> pari.genus2red([-5*x**5, x**3 - 2*x**2 - 2*x + 1],2267)
1330-
[2267, Mat([2267, 1]), [-6*x^5 + 2*x^3 - x, x^3 + 1], [2267, [2, [Mod(432, 2267)]], ["[I{1-0-0}] page 170", []]]]
1330+
[2267, Mat([2267, 1]), ..., [2267, [2, [Mod(432, 2267)]], ["[I{1-0-0}] page 170", []]]]
13311331
"""
13321332
cdef Gen t0 = objtogen(P)
13331333
if p is None:

0 commit comments

Comments
 (0)