Skip to content

Commit bf96995

Browse files
Add the expected exception message
1 parent 3bc072c commit bf96995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/parser/test_python_parser_only.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,6 @@ def test_file_descriptor_leak(python_parser_only):
324324
parser = python_parser_only
325325
with tm.ensure_clean() as path:
326326
expected = proc.open_files()
327-
with pytest.raises(EmptyDataError):
327+
with pytest.raises(EmptyDataError, match="No columns to parse from file"):
328328
parser.read_csv(path)
329329
assert proc.open_files() == expected

0 commit comments

Comments
 (0)