I ran the test suite and for each python version, the error is different.
python 3.6
>python test/test.py
test_fmpz...
python 3.7
>python test/test.py
Traceback (most recent call last):
File "test/test.py", line 439, in <module>
sys.stdout.write("test_fmpz..."); test_fmpz(); print("OK")
File "test/test.py", line 19, in test_fmpz
assert flint.fmpz() == flint.fmpz(0)
AssertionError
python 3.8
>python test/test.py
Traceback (most recent call last):
File "test/test.py", line 439, in <module>
sys.stdout.write("test_fmpz..."); test_fmpz(); print("OK")
File "test/test.py", line 26, in test_fmpz
assert ltype(s) + rtype(t) == s + t
AssertionError
One possible issue could be that, long is used everywhere instead of long long. For example, PyLong_AsLongLongAndOverflow should be used instead of PyLong_AsLongAndOverflow at https://github.com/fredrik-johansson/python-flint/blob/master/src/fmpz.pyx#L4.
I ran the test suite and for each python version, the error is different.
python 3.6
python 3.7
python 3.8
One possible issue could be that,
longis used everywhere instead oflong long. For example,PyLong_AsLongLongAndOverflowshould be used instead ofPyLong_AsLongAndOverflowat https://github.com/fredrik-johansson/python-flint/blob/master/src/fmpz.pyx#L4.