Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pandas/tests/arrays/sparse/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ def test_constructor_object_dtype_bool_fill(self):
assert arr.dtype == SparseDtype(object, False)
assert arr.fill_value is False
arr_expected = np.array(data, dtype=object)
it = (type(x) == type(y) and x == y for x, y in zip(arr, arr_expected))
it = (
type(x) == type(y) and x == y
for x, y in zip(arr, arr_expected, strict=True)
)
assert np.fromiter(it, dtype=np.bool_).all()

@pytest.mark.parametrize("dtype", [SparseDtype(int, 0), int])
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/arrays/test_datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_iter(self, dta):
def test_astype_object(self, dta):
result = dta.astype(object)
assert all(x._creso == dta._creso for x in result)
assert all(x == y for x, y in zip(result, dta))
assert all(x == y for x, y in zip(result, dta, strict=True))

def test_to_pydatetime(self, dta_dti):
dta, dti = dta_dti
Expand Down
Loading