Skip to content

Commit 32bdeed

Browse files
committed
revert redundant test
1 parent 86ab7c3 commit 32bdeed

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Lib/test/test_struct.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)