Commits

mattip  committed e01f896

since pack() uses copysign, avoid testing copysign(1.0, float('nan')) which is platform dependent

  • Participants
  • Parent commits 611f53f

Comments (0)

Files changed (1)

File rpython/rlib/rstruct/test/test_ieee.py

 
         def check_roundtrip(x, size):
             s = c_pack(x, size)
-            assert s == pack(x, size)
             if not isnan(x):
+                # pack uses copysign which is ambiguous for NAN
+                assert s == pack(x, size)
                 assert unpack(s) == x
                 assert c_unpack(s) == x
             else: