Skip to content

Commit f14b501

Browse files
Fix indentation of assert statement (also in previous test, same error)
1 parent 315f1e1 commit f14b501

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/tests/io/parser/test_common.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -963,10 +963,7 @@ def test_nonexistent_path(all_parsers):
963963
msg = r"\[Errno 2\]"
964964
with pytest.raises(FileNotFoundError, match=msg) as e:
965965
parser.read_csv(path)
966-
967-
filename = e.value.filename
968-
969-
assert path == filename
966+
assert path == e.value.filename
970967

971968

972969
def test_no_permission(all_parsers):
@@ -978,7 +975,7 @@ def test_no_permission(all_parsers):
978975
os.chmod(path, 0) # make file unreadable
979976
with pytest.raises(PermissionError, match=msg) as e:
980977
parser.read_csv(path)
981-
assert path == e.value.filename
978+
assert path == e.value.filename
982979

983980

984981
def test_missing_trailing_delimiters(all_parsers):

0 commit comments

Comments
 (0)