We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 315f1e1 commit f14b501Copy full SHA for f14b501
pandas/tests/io/parser/test_common.py
@@ -963,10 +963,7 @@ def test_nonexistent_path(all_parsers):
963
msg = r"\[Errno 2\]"
964
with pytest.raises(FileNotFoundError, match=msg) as e:
965
parser.read_csv(path)
966
-
967
- filename = e.value.filename
968
969
- assert path == filename
+ assert path == e.value.filename
970
971
972
def test_no_permission(all_parsers):
@@ -978,7 +975,7 @@ def test_no_permission(all_parsers):
978
975
os.chmod(path, 0) # make file unreadable
979
976
with pytest.raises(PermissionError, match=msg) as e:
980
977
981
- assert path == e.value.filename
982
983
984
def test_missing_trailing_delimiters(all_parsers):
0 commit comments