Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix: update test_find_dotenv_no_file_raise to expect FileNotFoundErro…
…r Updated test_main.py (line 351) to replace IOError with FileNotFoundError so that the test matches the updated exception handling in main.py.
  • Loading branch information
creepereye1204 authored Mar 10, 2026
commit 7b5afcfc8a17bf93a030313cac2f89c76a0bfc8d
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def test_find_dotenv_no_file_raise(tmp_path):
leaf = prepare_file_hierarchy(tmp_path)
os.chdir(leaf)

with pytest.raises(IOError):
with pytest.raises(FileNotFoundError):
dotenv.find_dotenv(raise_error_if_not_found=True, usecwd=True)


Expand Down