mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Make a test more reliable
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import pytest
|
||||
|
||||
from ..helpers import test_dir
|
||||
|
||||
|
||||
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]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user