We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94b7087 commit a149584Copy full SHA for a149584
pandas/tests/test_algos.py
@@ -1100,8 +1100,10 @@ def test_add_signed_zeros(self):
1100
1101
def test_add_different_nans(self):
1102
# create different nans from bit-patterns:
1103
- NAN1 = struct.unpack("d", struct.pack("L", 0x7ff8000000000000))[0]
1104
- NAN2 = struct.unpack("d", struct.pack("L", 0x7ff8000000000001))[0]
+ NAN1 = struct.unpack("d", struct.pack("=Q", 0x7ff8000000000000))[0]
+ NAN2 = struct.unpack("d", struct.pack("=Q", 0x7ff8000000000001))[0]
1105
+ assert NAN1 != NAN1
1106
+ assert NAN2 != NAN2
1107
# default hash function would lead to different hash-buckets
1108
# for NAN1 and NAN2 even if there are only 4 buckets:
1109
m = ht.Float64HashTable()
0 commit comments