Skip to content

Commit a149584

Browse files
committed
fixing tests for windows: not using native 'L', but standard '=Q' as format string
1 parent 94b7087 commit a149584

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/test_algos.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,8 +1100,10 @@ def test_add_signed_zeros(self):
11001100

11011101
def test_add_different_nans(self):
11021102
# 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]
1103+
NAN1 = struct.unpack("d", struct.pack("=Q", 0x7ff8000000000000))[0]
1104+
NAN2 = struct.unpack("d", struct.pack("=Q", 0x7ff8000000000001))[0]
1105+
assert NAN1 != NAN1
1106+
assert NAN2 != NAN2
11051107
# default hash function would lead to different hash-buckets
11061108
# for NAN1 and NAN2 even if there are only 4 buckets:
11071109
m = ht.Float64HashTable()

0 commit comments

Comments
 (0)