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
2 changes: 1 addition & 1 deletion pandas/tests/arrays/categorical/test_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def test_map_with_dict_or_series(na_action):
expected = Categorical(new_values, categories=[3.0, 2, "one"])
tm.assert_categorical_equal(result, expected)

mapper = dict(zip(orig_values[:-1], new_values[:-1]))
mapper = dict(zip(orig_values[:-1], new_values[:-1], strict=True))
result = cat.map(mapper, na_action=na_action)
# Order of categories in result can be different
tm.assert_categorical_equal(result, expected)
2 changes: 1 addition & 1 deletion pandas/tests/arrays/integer/test_construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_conversions(data_missing):
expected = np.array([pd.NA, 1], dtype=object)
tm.assert_numpy_array_equal(result, expected)

for r, e in zip(result, expected):
for r, e in zip(result, expected, strict=True):
if pd.isnull(r):
assert pd.isnull(e)
elif is_integer(r):
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/arrays/integer/test_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_ufunc_binary_output(using_nan_is_na):
assert isinstance(result, tuple)
assert len(result) == 2

for x, y in zip(result, expected):
for x, y in zip(result, expected, strict=True):
tm.assert_extension_array_equal(x, y)


Expand Down
Loading