mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-19 07:41:32 +08:00
Make a test more reliable
This commit is contained in:
1 parent
5f2f4af851
commit
43ff2833f3
1 file changed
+3
-1
@@ -1,8 +1,10 @@
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
from ..helpers import test_dir
|
||||||
|
|
||||||
|
|
||||||
def test_import_references(Script):
|
def test_import_references(Script):
|
||||||
s = Script("from .. import foo", path="foo.py")
|
s = Script("from .. import foo", path=test_dir.joinpath("foo.py"))
|
||||||
assert [usage.line for usage in s.get_references()] == [1]
|
assert [usage.line for usage in s.get_references()] == [1]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user