@@ -5501,6 +5501,10 @@ def test_same_value_cast_floats_within_range(self, dtype):
55015501 ])
55025502 def test_same_value_cast_floats_precision_loss (self , dtype ):
55035503 """Test values that cannot be represented exactly and should fail."""
5504+ import sys
5505+ if dtype == np .longdouble and sys .byteorder == 'big' :
5506+ pytest .skip ("longdouble precision loss test skipped on big-endian systems" )
5507+
55045508 from decimal import Decimal , getcontext
55055509
55065510 getcontext ().prec = 50 # plenty for quad precision
@@ -5528,7 +5532,7 @@ def test_same_value_cast_floats_precision_loss(self, dtype):
55285532 q .astype (dtype , casting = "same_value" )
55295533
55305534 @pytest .mark .parametrize ("dtype" , [
5531- "S50" , "U50" , "<U50" , " S100" , "U100" , np .dtypes .StringDType ()
5535+ "S50" , "U50" , "S100" , "U100" , np .dtypes .StringDType ()
55325536 ])
55335537 def test_same_value_cast_strings_enough_width (self , dtype ):
55345538 """Test that string types with enough width can represent quad values exactly."""
@@ -5549,7 +5553,7 @@ def test_same_value_cast_strings_enough_width(self, dtype):
55495553 else :
55505554 assert q [0 ] == back [0 ], f"Value { val } roundtrip failed for { dtype } "
55515555
5552- @pytest .mark .parametrize ("dtype" , ["S10" , "U10" , "<U10" ])
5556+ @pytest .mark .parametrize ("dtype" , ["S10" , "U10" ])
55535557 def test_same_value_cast_strings_narrow_width (self , dtype ):
55545558 """Test that string types with narrow width fail for values that need more precision."""
55555559 # Values that can fit in 10 chars should pass
0 commit comments