File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -935,15 +935,6 @@ def test_half_float(self):
935935 self .assertTrue (math .isnan (struct .unpack ('<e' , bits )[0 ]))
936936 self .assertTrue (math .isnan (struct .unpack ('>e' , bits [::- 1 ])[0 ]))
937937
938- # Check round-trip for NaN's:
939- if (sys .platform == 'win32'
940- and not (int .from_bytes (bits [::- 1 ]) & (1 << 9 ))):
941- continue # doesn't work for sNaN's here
942- nan = struct .unpack ('<e' , bits )[0 ]
943- self .assertEqual (struct .pack ('<e' , nan ), bits )
944- nan = struct .unpack ('>e' , bits [::- 1 ])[0 ]
945- self .assertEqual (struct .pack ('>e' , nan ), bits [::- 1 ])
946-
947938 # Check that packing produces a bit pattern representing a quiet NaN:
948939 # all exponent bits and the msb of the fraction should all be 1.
949940 packed = struct .pack ('<e' , math .nan )
You can’t perform that action at this time.
0 commit comments