mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
One more small test change
This commit is contained in:
@@ -34,10 +34,7 @@ def test_follow_import_incomplete(Script, environment):
|
|||||||
|
|
||||||
# incomplete `from * import` part
|
# incomplete `from * import` part
|
||||||
datetime = check_follow_definition_types(Script, "from datetime import datetim")
|
datetime = check_follow_definition_types(Script, "from datetime import datetim")
|
||||||
if environment.version_info.major == 2:
|
|
||||||
assert datetime == ['class']
|
assert datetime == ['class']
|
||||||
else:
|
|
||||||
assert set(datetime) == {'class', 'instance'} # py3: builtin and pure py version
|
|
||||||
# os.path check
|
# os.path check
|
||||||
ospath = check_follow_definition_types(Script, "from os.path import abspat")
|
ospath = check_follow_definition_types(Script, "from os.path import abspat")
|
||||||
assert ospath == ['function']
|
assert ospath == ['function']
|
||||||
|
|||||||
Reference in New Issue
Block a user