Change a few tests to match new typeshed

This commit is contained in:
Dave Halter
2026-04-29 09:30:49 +02:00
parent 04e5f5b3b8
commit fe0369436e
11 changed files with 29 additions and 25 deletions
+6 -2
View File
@@ -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