mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-07 01:44:00 +08:00
Change a few tests to match new typeshed
This commit is contained in:
+6
-2
@@ -36,7 +36,7 @@ class TestSetupReadline(unittest.TestCase):
|
||||
assert self.complete('list') == ['list']
|
||||
assert self.complete('importerror') == ['ImportError']
|
||||
s = "print(BaseE"
|
||||
assert self.complete(s) == [s + 'xception']
|
||||
assert self.complete(s) == [s + 'xception', s + 'xceptionGroup']
|
||||
|
||||
def test_nested(self):
|
||||
assert self.complete('list.Insert') == ['list.insert']
|
||||
@@ -69,7 +69,11 @@ class TestSetupReadline(unittest.TestCase):
|
||||
|
||||
def test_import(self):
|
||||
s = 'from os.path import a'
|
||||
assert set(self.complete(s)) == {s + 'ltsep', s + 'bspath'}
|
||||
assert set(self.complete(s)) == {
|
||||
s + 'ltsep',
|
||||
s + 'bspath',
|
||||
'from os.path import ALLOW_MISSING'
|
||||
}
|
||||
assert self.complete('import keyword') == ['import keyword']
|
||||
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user