Comments (9)
@casevh, I think this can be closed.
from gmpy.
pytest automatically tries to scan test/test_* files. Those .txt files should be renamed to be able use pytest.
After pass test/*.py
files as pytest param:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-gmpy2-2.1.5-5.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-gmpy2-2.1.5-5.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network' test/gmpy_test.py test/runtests.py test/supportclasses.py test/test_mpz_args.py test/test_pack.py
============================= test session starts ==============================
platform linux -- Python 3.8.18, pytest-7.4.0, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5
collected 2 items / 1 error
==================================== ERRORS ====================================
______________________ ERROR collecting test/runtests.py _______________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/python.py:536: in collect
self._inject_setup_module_fixture()
/usr/lib/python3.8/site-packages/_pytest/python.py:550: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/usr/lib/python3.8/site-packages/_pytest/python.py:315: in obj
self._obj = obj = self._getobj()
/usr/lib/python3.8/site-packages/_pytest/python.py:533: in _getobj
return self._importtestmodule()
/usr/lib/python3.8/site-packages/_pytest/python.py:622: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:565: in import_path
importlib.import_module(module_name)
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
???
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:671: in _load_unlocked
???
/usr/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
exec(co, module.__dict__)
test/runtests.py:161: in <module>
sys.exit(1)
E SystemExit: 1
------------------------------- Captured stdout --------------------------------
Unit tests for gmpy2 2.1.5 with Python 3.8.18
Mutliple-precision library: GMP 6.2.1
Floating-point library: MPFR 4.2.1
Complex library: MPC 1.3.1
Caching Values: (Cache size) 100
Caching Values: (Size in limbs) 128
Results for: test_context Attempted: 38 Failed: 0
Results for: test_gmpy2_abs Attempted: 83 Failed: 0
Results for: test_gmpy2_add Attempted: 82 Failed: 0
Results for: test_gmpy2_binary Attempted: 106 Failed: 0
Results for: test_gmpy2_cmp Attempted: 41 Failed: 0
Results for: test_gmpy2_comp Attempted: 89 Failed: 0
Results for: test_gmpy2_const Attempted: 33 Failed: 0
Results for: test_gmpy2_constructors Attempted: 34 Failed: 0
Results for: test_gmpy2_convert Attempted: 50 Failed: 0
Results for: test_gmpy2_divmod Attempted: 42 Failed: 0
Results for: test_gmpy2_floordiv Attempted: 72 Failed: 0
Results for: test_gmpy2_format Attempted: 102 Failed: 0
Results for: test_gmpy2_fused Attempted: 18 Failed: 0
Results for: test_gmpy2_lucas Attempted: 23 Failed: 0
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_gmpy2_math.txt", line 35, in test_gmpy2_math.txt
Failed example:
ctx.sqrt(mpfr(-380.25))
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
1 items had failures:
1 of 147 in test_gmpy2_math.txt
***Test Failed*** 1 failures.
Results for: test_gmpy2_math Attempted: 147 Failed: 1
Results for: test_gmpy2_minus Attempted: 14 Failed: 0
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_gmpy2_mpfr_misc.txt", line 118, in test_gmpy2_mpfr_misc.txt
Failed example:
nan = gmpy2.nan(); nan
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
1 items had failures:
1 of 85 in test_gmpy2_mpfr_misc.txt
***Test Failed*** 1 failures.
Results for: test_gmpy2_mpfr_misc Attempted: 85 Failed: 1
Results for: test_gmpy2_mpq_misc Attempted: 38 Failed: 0
Results for: test_gmpy2_mpq_misc_py3 Attempted: 3 Failed: 0
Results for: test_gmpy2_mpz_bitops Attempted: 115 Failed: 0
Results for: test_gmpy2_mpz_divmod Attempted: 67 Failed: 0
Results for: test_gmpy2_mpz_divmod2exp Attempted: 66 Failed: 0
Results for: test_gmpy2_mpz_inplace Attempted: 87 Failed: 0
Results for: test_gmpy2_mpz_misc Attempted: 231 Failed: 0
Results for: test_gmpy2_mpz_misc_py3 Attempted: 19 Failed: 0
Results for: test_gmpy2_mul Attempted: 68 Failed: 0
Results for: test_gmpy2_muldiv_2exp Attempted: 24 Failed: 0
Results for: test_gmpy2_plus Attempted: 16 Failed: 0
Results for: test_gmpy2_pow Attempted: 62 Failed: 0
Results for: test_gmpy2_predicate Attempted: 120 Failed: 0
Results for: test_gmpy2_prp Attempted: 57 Failed: 0
Results for: test_gmpy2_root Attempted: 23 Failed: 0
Results for: test_gmpy2_square Attempted: 19 Failed: 0
Results for: test_gmpy2_sub Attempted: 83 Failed: 0
Results for: test_gmpy2_xmpz_inplace Attempted: 79 Failed: 0
Results for: test_gmpy2_xmpz_limbs Attempted: 21 Failed: 0
Results for: test_gmpy2_xmpz_misc Attempted: 59 Failed: 0
Results for: test_misc Attempted: 27 Failed: 0
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpc.txt", line 102, in test_mpc.txt
Failed example:
aj / 0
Differences (ndiff with -expected +actual):
- mpc('inf+infj')
+ mpc('inf++infj')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpc.txt", line 151, in test_mpc.txt
Failed example:
aj - float('nan')
Differences (ndiff with -expected +actual):
- mpc('nan+2.0j')
+ mpc('-nan+2.0j')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpc.txt", line 153, in test_mpc.txt
Failed example:
aj * float('inf')
Differences (ndiff with -expected +actual):
- mpc('inf+infj')
+ mpc('inf++infj')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpc.txt", line 157, in test_mpc.txt
Failed example:
aj * float('nan')
Differences (ndiff with -expected +actual):
- mpc('nan+nanj')
+ mpc('nan++nanj')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpc.txt", line 159, in test_mpc.txt
Failed example:
mpc(0,0) * float('inf')
Differences (ndiff with -expected +actual):
- mpc('nan+nanj')
+ mpc('-nan++nanj')
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpc.txt", line 161, in test_mpc.txt
Failed example:
mpc(0,0) * float('-inf')
Differences (ndiff with -expected +actual):
- mpc('nan+nanj')
+ mpc('nan++nanj')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpc.txt", line 163, in test_mpc.txt
Failed example:
mpc(0,0) * float('nan')
Differences (ndiff with -expected +actual):
- mpc('nan+nanj')
+ mpc('nan++nanj')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpc.txt", line 171, in test_mpc.txt
Failed example:
float('-inf') / aj
Differences (ndiff with -expected +actual):
- mpc('-inf+infj')
+ mpc('-inf++infj')
? +
**********************************************************************
1 items had failures:
8 of 132 in test_mpc.txt
***Test Failed*** 8 failures.
Results for: test_mpc Attempted: 132 Failed: 8
Results for: test_mpc_create Attempted: 7 Failed: 0
Results for: test_mpc_trig Attempted: 21 Failed: 0
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 145, in test_mpfr.txt
Failed example:
b / mpc(0, 0)
Differences (ndiff with -expected +actual):
- mpc('inf+nanj')
+ mpc('inf++nanj')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 147, in test_mpfr.txt
Failed example:
get_context().div(b, mpc(0, 0))
Differences (ndiff with -expected +actual):
- mpc('inf+nanj')
+ mpc('inf++nanj')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 293, in test_mpfr.txt
Failed example:
a + float('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 295, in test_mpfr.txt
Failed example:
float('nan') + a
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 307, in test_mpfr.txt
Failed example:
float('nan') - a
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 329, in test_mpfr.txt
Failed example:
mpfr(0) * float('Inf')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 353, in test_mpfr.txt
Failed example:
a / float('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 357, in test_mpfr.txt
Failed example:
float('nan') / mpfr(0)
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 370, in test_mpfr.txt
Failed example:
a + mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 382, in test_mpfr.txt
Failed example:
a - mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 402, in test_mpfr.txt
Failed example:
a * mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 430, in test_mpfr.txt
Failed example:
a / mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 434, in test_mpfr.txt
Failed example:
mpfr('nan') / mpfr(0)
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 447, in test_mpfr.txt
Failed example:
divmod(a, float('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 449, in test_mpfr.txt
Failed example:
divmod(-a, float('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 457, in test_mpfr.txt
Failed example:
divmod(float('Inf'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 461, in test_mpfr.txt
Failed example:
divmod(float('Inf'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 463, in test_mpfr.txt
Failed example:
divmod(float('-Inf'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 465, in test_mpfr.txt
Failed example:
divmod(float('nan'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 467, in test_mpfr.txt
Failed example:
divmod(float('nan'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 469, in test_mpfr.txt
Failed example:
divmod(float('Inf'), mpfr(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 473, in test_mpfr.txt
Failed example:
divmod(float('nan'), mpfr(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 484, in test_mpfr.txt
Failed example:
divmod(a, mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 486, in test_mpfr.txt
Failed example:
divmod(-a, mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 492, in test_mpfr.txt
Failed example:
divmod(mpfr(0), mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 494, in test_mpfr.txt
Failed example:
divmod(mpfr('Inf'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 498, in test_mpfr.txt
Failed example:
divmod(mpfr('Inf'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 500, in test_mpfr.txt
Failed example:
divmod(mpfr('-Inf'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 502, in test_mpfr.txt
Failed example:
divmod(mpfr('nan'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 504, in test_mpfr.txt
Failed example:
divmod(mpfr('nan'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 506, in test_mpfr.txt
Failed example:
divmod(mpfr('Inf'), mpfr(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr.txt", line 510, in test_mpfr.txt
Failed example:
divmod(mpfr('nan'), mpfr(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
1 items had failures:
32 of 227 in test_mpfr.txt
***Test Failed*** 32 failures.
Results for: test_mpfr Attempted: 227 Failed: 32
Results for: test_mpfr4_fused Attempted: 13 Failed: 0
Results for: test_mpfr4_random Attempted: 7 Failed: 0
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr_create.txt", line 47, in test_mpfr_create.txt
Failed example:
mpfr(float("nan"))
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
1 items had failures:
1 of 73 in test_mpfr_create.txt
***Test Failed*** 1 failures.
Results for: test_mpfr_create Attempted: 73 Failed: 1
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpfr_min_max.txt", line 55, in test_mpfr_min_max.txt
Failed example:
minnum(nan, nan)
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
1 items had failures:
1 of 26 in test_mpfr_min_max.txt
***Test Failed*** 1 failures.
Results for: test_mpfr_min_max Attempted: 26 Failed: 1
Results for: test_mpfr_subnormalize Attempted: 17 Failed: 0
Results for: test_mpfr_trig Attempted: 140 Failed: 0
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 218, in test_mpq.txt
Failed example:
a + float('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 220, in test_mpq.txt
Failed example:
float('nan') + a
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 232, in test_mpq.txt
Failed example:
float('nan') - a
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 278, in test_mpq.txt
Failed example:
a / float('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 282, in test_mpq.txt
Failed example:
float('nan') / G.mpz(0)
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 295, in test_mpq.txt
Failed example:
a + mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 307, in test_mpq.txt
Failed example:
a - mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 327, in test_mpq.txt
Failed example:
a * mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 335, in test_mpq.txt
Failed example:
mpfr('Inf') * G.mpz(0)
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 355, in test_mpq.txt
Failed example:
a / mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 372, in test_mpq.txt
Failed example:
divmod(a, float('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 374, in test_mpq.txt
Failed example:
divmod(-a, float('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 382, in test_mpq.txt
Failed example:
divmod(float('Inf'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 386, in test_mpq.txt
Failed example:
divmod(float('Inf'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 390, in test_mpq.txt
Failed example:
divmod(float('nan'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 394, in test_mpq.txt
Failed example:
divmod(float('Inf'), G.mpz(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 398, in test_mpq.txt
Failed example:
divmod(float('nan'), G.mpz(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 409, in test_mpq.txt
Failed example:
divmod(a, mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 411, in test_mpq.txt
Failed example:
divmod(-a, mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 417, in test_mpq.txt
Failed example:
divmod(G.mpz(0), mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 419, in test_mpq.txt
Failed example:
divmod(mpfr('Inf'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 423, in test_mpq.txt
Failed example:
divmod(mpfr('Inf'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 427, in test_mpq.txt
Failed example:
divmod(mpfr('nan'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 431, in test_mpq.txt
Failed example:
divmod(mpfr('Inf'), G.mpz(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpq.txt", line 435, in test_mpq.txt
Failed example:
divmod(mpfr('nan'), G.mpz(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
1 items had failures:
25 of 207 in test_mpq.txt
***Test Failed*** 25 failures.
Results for: test_mpq Attempted: 207 Failed: 25
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 316, in test_mpz.txt
Failed example:
a + float('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 318, in test_mpz.txt
Failed example:
float('nan') + a
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 331, in test_mpz.txt
Failed example:
float('nan') - a
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 378, in test_mpz.txt
Failed example:
a / float('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 382, in test_mpz.txt
Failed example:
float('nan') / G.mpz(0)
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 395, in test_mpz.txt
Failed example:
a - mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 415, in test_mpz.txt
Failed example:
a * mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 423, in test_mpz.txt
Failed example:
mpfr('Inf') * G.mpz(0)
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 443, in test_mpz.txt
Failed example:
a / mpfr('nan')
Differences (ndiff with -expected +actual):
- mpfr('nan')
+ mpfr('-nan')
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 460, in test_mpz.txt
Failed example:
divmod(a, mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 462, in test_mpz.txt
Failed example:
divmod(-a, mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 468, in test_mpz.txt
Failed example:
divmod(G.mpz(0), mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 470, in test_mpz.txt
Failed example:
divmod(mpfr('Inf'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 474, in test_mpz.txt
Failed example:
divmod(mpfr('Inf'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 478, in test_mpz.txt
Failed example:
divmod(mpfr('nan'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 482, in test_mpz.txt
Failed example:
divmod(mpfr('Inf'), G.mpz(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 486, in test_mpz.txt
Failed example:
divmod(mpfr('nan'), G.mpz(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 497, in test_mpz.txt
Failed example:
divmod(a, mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 499, in test_mpz.txt
Failed example:
divmod(-a, mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 505, in test_mpz.txt
Failed example:
divmod(G.mpz(0), mpfr('nan'))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 507, in test_mpz.txt
Failed example:
divmod(mpfr('Inf'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 511, in test_mpz.txt
Failed example:
divmod(mpfr('Inf'), -a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 515, in test_mpz.txt
Failed example:
divmod(mpfr('nan'), a)
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 519, in test_mpz.txt
Failed example:
divmod(mpfr('Inf'), G.mpz(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('nan'), mpfr('-nan'))
? +
**********************************************************************
File "/home/tkloczko/rpmbuild/BUILD/gmpy-gmpy2-2.1.5/test/test_mpz.txt", line 523, in test_mpz.txt
Failed example:
divmod(mpfr('nan'), G.mpz(0))
Differences (ndiff with -expected +actual):
- (mpfr('nan'), mpfr('nan'))
+ (mpfr('-nan'), mpfr('-nan'))
? + +
**********************************************************************
1 items had failures:
25 of 230 in test_mpz.txt
***Test Failed*** 25 failures.
Results for: test_mpz Attempted: 230 Failed: 25
Results for: test_mpz_create Attempted: 58 Failed: 0
Results for: test_mpz_io Attempted: 60 Failed: 0
Results for: test_mpz_pack_unpack Attempted: 16 Failed: 0
Results for: test_py32_hash Attempted: 17 Failed: 0
Summary - Attempted: 3594 Failed: 94
Running external test programs.
Running test_pack.py successful
Running test_mpz_args.py successful
=========================== short test summary info ============================
ERROR test/runtests.py - SystemExit: 1
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 2.41s ===============================
Looks like test suite is not ready to be used with pytest 😞
from gmpy.
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
Please run python test/runtests.py
instead. The test suite only partially was converted to the pytest framework, see #377. Let us know if you still will be observe test failures.
Looks like test suite is not ready to be used with pytest
Yep.
from gmpy.
Thank you. I've subscribed to that ticket 👍
As in my distribution I'm trying to test everything using pytest I'll keep current test procedure .. even if it temporary/partially fails.
As you already mention that moving to pytest is in kind of WIP state for long term reason IMO better will be if I'll stick with pytest even if it fails temporary 😋
Using pytest allows me to perform many additional variants of the tests by install additional pytest extensions in build env.
from gmpy.
As in my distribution I'm trying to test everything using pytest I'll keep current test procedure .. even if it temporary/partially fails.
Whatever you wish, but if you are unable to reproduce test failures with a correct invocation of the gmpy2 test suite (as described above) - I believe this issue should be closed.
from gmpy.
If you are going to continue migration to pytest under that ticket which you mention I think that you are right.
I'm not sure so I'm leaving you decision 😋
from gmpy.
How do you suggest to fix this issue?
from gmpy.
My understanding is that your intention is to move test suite from custom framework to pytest and that work is in WIP state so fixing this issue may take longer time and/or is not critical as non-pytest based test suite runner is working.
If that is true I was ot aware of that and as work on pytest migration is done under different ticket probably this ticket can be closed. As I've already found that that I was not aware some development details as I wrote I'm leaving you you decision about closing or not this ticket .. only this an nothing more.
from gmpy.
Closing.
from gmpy.
Related Issues (20)
- bit_count() not found HOT 3
- Build failure on CPython 3.13 (dev)
- test failures with mpfr 4.2.1 (change in MPFR formatted functions) HOT 31
- New version? 🤔 HOT 15
- 2.1.5: *.h and *.pxd files are installed HOT 5
- Is the `is_strong_bpsw_prp` code correct? HOT 2
- Assessment of the difficulty in porting CPU architecture for the gmpy
- Description of `is_euler_prp` HOT 1
- mpz object missing to_bytes() method HOT 4
- complex conjugate crash HOT 2
- Linux wheels in the latest release (2.2.0a1) are broken HOT 10
- What is the paper that `is_extra_strong_lucas_prp` is referring to? HOT 4
- About the case where `k=0` is input to `lucasu_mod` and `lucasv_mod` HOT 2
- gmpy-2.1.5 fails to compile with python-3.12 HOT 10
- cython C-API is broken in published wheels (and in the build_wheels.yml CI workflow) HOT 9
- Pip install build fails, can't find mpc.h HOT 6
- Deprecate local_context()? HOT 18
- Impending release of gmpy2 2.2.0a2 HOT 10
- Issue with large factorial HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmpy.