mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +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
|
||||
datetime = check_follow_definition_types(Script, "from datetime import datetim")
|
||||
if environment.version_info.major == 2:
|
||||
assert datetime == ['class']
|
||||
else:
|
||||
assert set(datetime) == {'class', 'instance'} # py3: builtin and pure py version
|
||||
assert datetime == ['class']
|
||||
# os.path check
|
||||
ospath = check_follow_definition_types(Script, "from os.path import abspat")
|
||||
assert ospath == ['function']
|
||||
|
||||
Reference in New Issue
Block a user