Skip to content

Commit 9f494da

Browse files
authored
fstring format added in pandas//tests/io/test_common.py:144: (#32813)
1 parent e72e2dd commit 9f494da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/test_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext):
141141
pytest.importorskip(module)
142142

143143
path = os.path.join(HERE, "data", "does_not_exist." + fn_ext)
144-
msg1 = r"File (b')?.+does_not_exist\.{}'? does not exist".format(fn_ext)
144+
msg1 = fr"File (b')?.+does_not_exist\.{fn_ext}'? does not exist"
145145
msg2 = fr"\[Errno 2\] No such file or directory: '.+does_not_exist\.{fn_ext}'"
146146
msg3 = "Expected object or value"
147147
msg4 = "path_or_buf needs to be a string file path or file-like"

0 commit comments

Comments
 (0)