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: 2 additions & 2 deletions pandas/tests/tseries/offsets/test_month.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_offset_whole_year(self):
datetime(2008, 12, 31),
)

for base, exp_date in zip(dates[:-1], dates[1:]):
for base, exp_date in zip(dates[:-1], dates[1:], strict=True):
assert_offset_equal(SemiMonthEnd(), base, exp_date)

# ensure .apply_index works as expected
Expand Down Expand Up @@ -312,7 +312,7 @@ def test_offset_whole_year(self):
datetime(2008, 12, 15),
)

for base, exp_date in zip(dates[:-1], dates[1:]):
for base, exp_date in zip(dates[:-1], dates[1:], strict=True):
assert_offset_equal(SemiMonthBegin(), base, exp_date)

# ensure .apply_index works as expected
Expand Down
4 changes: 4 additions & 0 deletions pandas/tests/tseries/offsets/test_offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ def test_copy(self):
"2008-01-02 00:00:00.001000000",
"2008-01-02 00:00:00.000001000",
],
strict=True,
),
)
def test_add(self, arithmatic_offset_type, expected, dt):
Expand All @@ -670,6 +671,7 @@ def test_add(self, arithmatic_offset_type, expected, dt):
"2008-01-01 23:59:59.999000000",
"2008-01-01 23:59:59.999999000",
],
strict=True,
),
)
def test_sub(self, arithmatic_offset_type, expected, dt):
Expand All @@ -693,6 +695,7 @@ def test_sub(self, arithmatic_offset_type, expected, dt):
"2008-01-02 00:00:00.008000000",
"2008-01-02 00:00:00.000009000",
],
strict=True,
),
)
def test_mul_add(self, arithmatic_offset_type, n, expected, dt):
Expand All @@ -717,6 +720,7 @@ def test_mul_add(self, arithmatic_offset_type, n, expected, dt):
"2008-01-01 23:59:59.992000000",
"2008-01-01 23:59:59.999991000",
],
strict=True,
),
)
def test_mul_sub(self, arithmatic_offset_type, n, expected, dt):
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,6 @@ exclude = [
"pandas/tests/strings/test_strings.py" = ["B905"]
"pandas/tests/test_algos.py" = ["B905"]
"pandas/tests/test_sorting.py" = ["B905"]
"pandas/tests/tseries/offsets/test_month.py" = ["B905"]
"pandas/tests/tseries/offsets/test_offsets.py" = ["B905"]
"pandas/tests/util/test_validate_kwargs.py" = ["B905"]
"scripts/validate_unwanted_patterns.py" = ["B905"]

Expand Down
Loading