Skip to content

Commit c17c3d0

Browse files
committed
powerpc has ld as quad
1 parent 9d10144 commit c17c3d0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

quaddtype/tests/test_quaddtype.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5502,14 +5502,14 @@ def test_same_value_cast_floats_within_range(self, dtype):
55025502
def test_same_value_cast_floats_precision_loss(self, dtype):
55035503
"""Test values that cannot be represented exactly and should fail."""
55045504
import sys
5505-
if dtype == np.longdouble and sys.byteorder == 'big':
5506-
pytest.skip("longdouble precision loss test skipped on big-endian systems")
5507-
55085505
from decimal import Decimal, getcontext
55095506

55105507
getcontext().prec = 50 # plenty for quad precision
55115508
info = np.finfo(dtype)
55125509
nmant = info.nmant # 10 for f16, 23 for f32, 52 for f64
5510+
5511+
if dtype == np.longdouble and nmant >= 112:
5512+
pytest.skip("longdouble has same precision as quad on this platform")
55135513

55145514
# First odd integer beyond exact representability
55155515
first_bad_int = 2 ** (nmant + 1) + 1

0 commit comments

Comments
 (0)