Skip to content

Commit 9339b3f

Browse files
author
wdyy20041223
committed
STY: Add strict=True to zip() calls in pandas\tests\arrays
1 parent 63c9498 commit 9339b3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/arrays/sparse/test_constructors.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ def test_constructor_object_dtype_bool_fill(self):
7777
assert arr.dtype == SparseDtype(object, False)
7878
assert arr.fill_value is False
7979
arr_expected = np.array(data, dtype=object)
80-
it = (type(x) == type(y) and x == y for x, y in zip(arr, arr_expected, strict=True))
80+
it = (
81+
type(x) == type(y) and x == y
82+
for x, y in zip(arr, arr_expected, strict=True)
83+
)
8184
assert np.fromiter(it, dtype=np.bool_).all()
8285

8386
@pytest.mark.parametrize("dtype", [SparseDtype(int, 0), int])

0 commit comments

Comments
 (0)