We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f29cb9 commit c3a602cCopy full SHA for c3a602c
tests/unit/test_api.py
@@ -95,10 +95,10 @@ def test_find_imports_in_file(imperfect):
95
96
97
def test_find_imports_in_file_error(tmpdir):
98
- broken_link = tmpdir.join("broken_link.py")
99
- broken_link.mksymlinkto("not-exist")
+ test_path = tmpdir.join("test_path.py")
+ test_path.mkdir()
100
with pytest.warns(UserWarning):
101
- assert not list(api.find_imports_in_file(broken_link))
+ assert not list(api.find_imports_in_file(test_path))
102
103
104
def test_find_imports_in_code():
0 commit comments