diff --git a/pandas/tests/indexes/timedeltas/test_constructors.py b/pandas/tests/indexes/timedeltas/test_constructors.py index 623b0d80a73dc..3e5bb56c3e58e 100644 --- a/pandas/tests/indexes/timedeltas/test_constructors.py +++ b/pandas/tests/indexes/timedeltas/test_constructors.py @@ -169,8 +169,8 @@ def test_constructor_coverage(self): timedelta_range(start="1 days", periods="foo", freq="D") msg = ( - r"TimedeltaIndex\(\) must be called with a collection of some kind," - " '1 days' was passed" + r"TimedeltaIndex\(\) must be called with a collection of some kind, " + "'1 days' was passed" ) with pytest.raises(TypeError, match=msg): TimedeltaIndex("1 days")