Relative imports should work even if they are not within the project

This commit is contained in:
Dave Halter committed 2020-10-20 01:00:22 +02:00
1 parent 04572422d4
commit 78e87d0ab8
3 files changed
+54 -2

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import pytest
def test_import_references(Script):
s = Script("from .. import foo", path="foo.py")
assert [usage.line for usage in s.get_references(line=1, column=18)] == [1]
assert [usage.line for usage in s.get_references()] == [1]
def test_exclude_builtin_modules(Script):