Skip to content

Commit 124b095

Browse files
committed
add the id of the issue to tests
1 parent 7f12a1d commit 124b095

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/test_algos.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,12 +502,14 @@ def test_obj_none_preservation(self):
502502
tm.assert_numpy_array_equal(result, expected, strict_nan=True)
503503

504504
def test_signed_zero(self):
505+
# GH 21866
505506
a = np.array([-0.0, 0.0])
506507
result = pd.unique(a)
507508
expected = np.array([-0.0]) # 0.0 and -0.0 are equivalent
508509
tm.assert_numpy_array_equal(result, expected)
509510

510511
def test_different_nans(self):
512+
# GH 21866
511513
# create different nans from bit-patterns:
512514
NAN1 = struct.unpack("d", struct.pack("=Q", 0x7ff8000000000000))[0]
513515
NAN2 = struct.unpack("d", struct.pack("=Q", 0x7ff8000000000001))[0]
@@ -1106,6 +1108,7 @@ def test_lookup_nan(self, writable):
11061108
dtype=np.int64))
11071109

11081110
def test_add_signed_zeros(self):
1111+
# GH 21866 inconsistent hash-function for float64
11091112
# default hash-function would lead to different hash-buckets
11101113
# for 0.0 and -0.0 if there are more than 2^30 hash-buckets
11111114
# but this would mean 16GB
@@ -1116,6 +1119,7 @@ def test_add_signed_zeros(self):
11161119
assert len(m) == 1 # 0.0 and -0.0 are equivalent
11171120

11181121
def test_add_different_nans(self):
1122+
# GH 21866 inconsistent hash-function for float64
11191123
# create different nans from bit-patterns:
11201124
NAN1 = struct.unpack("d", struct.pack("=Q", 0x7ff8000000000000))[0]
11211125
NAN2 = struct.unpack("d", struct.pack("=Q", 0x7ff8000000000001))[0]

0 commit comments

Comments
 (0)