Skip to content

Commit 7b5afcf

Browse files
Fix: update test_find_dotenv_no_file_raise to expect FileNotFoundError Updated test_main.py (line 351) to replace IOError with FileNotFoundError so that the test matches the updated exception handling in main.py.
1 parent fa4e6a9 commit 7b5afcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def test_find_dotenv_no_file_raise(tmp_path):
346346
leaf = prepare_file_hierarchy(tmp_path)
347347
os.chdir(leaf)
348348

349-
with pytest.raises(IOError):
349+
with pytest.raises(FileNotFoundError):
350350
dotenv.find_dotenv(raise_error_if_not_found=True, usecwd=True)
351351

352352

0 commit comments

Comments
 (0)