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
4 changes: 3 additions & 1 deletion pandas/tests/arithmetic/test_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def elementwise_comparison(self, op, interval_array, other):
Helper that performs elementwise comparisons between `array` and `other`
"""
other = other if is_list_like(other) else [other] * len(interval_array)
expected = np.array([op(x, y) for x, y in zip(interval_array, other)])
expected = np.array(
[op(x, y) for x, y in zip(interval_array, other, strict=True)]
)
if isinstance(other, Series):
return Series(expected, index=other.index)
return expected
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/arithmetic/test_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,11 +962,11 @@ def test_pi_add_sub_int_array_freqn_gt1(self):
pi = period_range("2016-01-01", periods=10, freq="2D")
arr = np.arange(10)
result = pi + arr
expected = pd.Index([x + y for x, y in zip(pi, arr)])
expected = pd.Index([x + y for x, y in zip(pi, arr, strict=True)])
tm.assert_index_equal(result, expected)

result = pi - arr
expected = pd.Index([x - y for x, y in zip(pi, arr)])
expected = pd.Index([x - y for x, y in zip(pi, arr, strict=True)])
tm.assert_index_equal(result, expected)

def test_pi_sub_isub_offset(self):
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,6 @@ exclude = [
"pandas/_testing/asserters.py" = ["B905"]
"pandas/_testing/_warnings.py" = ["B905"]
"pandas/tests/apply/test_series_apply.py" = ["B905"]
"pandas/tests/arithmetic/test_interval.py" = ["B905"]
"pandas/tests/arithmetic/test_numeric.py" = ["B905"]
"pandas/tests/arithmetic/test_period.py" = ["B905"]
"pandas/tests/arrays/categorical/test_map.py" = ["B905"]
"pandas/tests/arrays/integer/test_construction.py" = ["B905"]
"pandas/tests/arrays/integer/test_function.py" = ["B905"]
Expand Down
Loading