Created attachment 921200 [details] build.log (ppc64, 1.4.0_alpha4) ========================================== FAILURES =========================================== _______________________________ test_hexadecimal_with_libc_bulk _______________________________ [gw30] linux -- Python 3.12.9 /var/tmp/portage/dev-python/mpmath-1.4.0_alpha4/work/mpmath-1.4.0a4-python3_12/install/usr/bin/python3.12 @pytest.mark.skipif(libc is None, reason='requires libc') > @settings(max_examples=10000) f = <function given.<locals>.run_test_as_given.<locals>.wrapped_test at 0x3fff95dac540> mpmath/tests/test_format.py:832: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ x = 1.0, p = 0 @pytest.mark.skipif(libc is None, reason='requires libc') @settings(max_examples=10000) @given(st.floats(allow_nan=False, allow_infinity=False, allow_subnormal=False), st.integers(min_value=0, max_value=15)) def test_hexadecimal_with_libc_bulk(x, p): fmt = '.' + str(p) + 'a' x_hex = float_print(x, p) m_hex = format(mp.mpf(x), fmt) > assert mp.mpf(m_hex) == mp.mpf(x_hex) E AssertionError: assert mpf('1.0') == mpf('0.0') E + where mpf('1.0') = <class 'mpmath.ctx_mp_python.mpf'>('0x1p+0') E + where <class 'mpmath.ctx_mp_python.mpf'> = <mpmath.ctx_mp.MPContext object at 0x3fff96f1c800>.mpf E + and mpf('0.0') = <class 'mpmath.ctx_mp_python.mpf'>('0x0p-1022') E + where <class 'mpmath.ctx_mp_python.mpf'> = <mpmath.ctx_mp.MPContext object at 0x3fff96f1c800>.mpf E Falsifying example: test_hexadecimal_with_libc_bulk( E x=1.0, E p=0, E ) fmt = '.0a' m_hex = '0x1p+0' p = 0 x = 1.0 x_hex = '0x0p-1022' mpmath/tests/test_format.py:840: AssertionError [...] =================================== short test summary info =================================== SKIPPED [1] mpmath/tests/test_cli.py:60: IPython is available XFAIL mpmath/tests/test_matrices.py::test_interval_matrix_matrix_mult XFAIL mpmath/tests/test_quad.py::test_expmath_fail FAILED mpmath/tests/test_format.py::test_hexadecimal_with_libc_bulk - AssertionError: assert mpf('1.0') == mpf('0.0') + where mpf('1.0') = <class 'mpmath.ctx_mp_python.mpf'>('0x1p+0') + where <class 'mpmath.ctx_mp_python.mpf'> = <mpmath.ctx_mp.MPContext object at 0x3fff96f1c800>.mpf + and mpf('0.0') = <class 'mpmath.ctx_mp_python.mpf'>('0x0p-1022') + where <class 'mpmath.ctx_mp_python.mpf'> = <mpmath.ctx_mp.MPContext object at 0x3fff96f1c800>.mpf Falsifying example: test_hexadecimal_with_libc_bulk( x=1.0, p=0, ) ==== 1 failed, 2416 passed, 1 skipped, 2 xfailed, 7 warnings, 5 rerun in 274.36s (0:04:34) ==== * ERROR: dev-python/mpmath-1.4.0_alpha4::gentoo failed (test phase): * pytest failed with python3.12
Created attachment 921201 [details] emerge --info