From 60a303274777a13bc44d6898acca12c64182a69a Mon Sep 17 00:00:00 2001 From: Willie Blan Date: Sun, 22 Dec 2019 19:37:37 -0600 Subject: [PATCH] Fixing pandas/tests/indexes/datetimes/test_ops.py to utilize python3 format strings. --- pandas/tests/indexes/datetimes/test_ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/indexes/datetimes/test_ops.py b/pandas/tests/indexes/datetimes/test_ops.py index cd8d5bd7b260b..fb032947143d3 100644 --- a/pandas/tests/indexes/datetimes/test_ops.py +++ b/pandas/tests/indexes/datetimes/test_ops.py @@ -41,9 +41,9 @@ def test_ops_properties_basic(self): # sanity check that the behavior didn't change # GH#7206 - msg = "'Series' object has no attribute '{}'" for op in ["year", "day", "second", "weekday"]: - with pytest.raises(AttributeError, match=msg.format(op)): + msg = f"'Series' object has no attribute '{op}'" + with pytest.raises(AttributeError, match=msg): getattr(self.dt_series, op) # attribute access should still work!