Skip to content

Commit 604b0b5

Browse files
AncientRicklesAlexKirko
authored andcommitted
Fixing pandas/tests/indexes/datetimes/test_ops.py to utilize python3 format strings. (pandas-dev#30420)
1 parent 45f2111 commit 604b0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexes/datetimes/test_ops.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def test_ops_properties_basic(self):
4141

4242
# sanity check that the behavior didn't change
4343
# GH#7206
44-
msg = "'Series' object has no attribute '{}'"
4544
for op in ["year", "day", "second", "weekday"]:
46-
with pytest.raises(AttributeError, match=msg.format(op)):
45+
msg = f"'Series' object has no attribute '{op}'"
46+
with pytest.raises(AttributeError, match=msg):
4747
getattr(self.dt_series, op)
4848

4949
# attribute access should still work!

0 commit comments

Comments
 (0)