Fix 3.10 tests in one more case

This commit is contained in:
Dave Halter
2026-05-02 00:22:06 +02:00
parent 87e782f9c8
commit fedb1a5eb0
+5 -1
View File
@@ -1,3 +1,4 @@
import sys
from typing import Any
try:
@@ -36,7 +37,10 @@ class TestSetupReadline(unittest.TestCase):
assert self.complete('list') == ['list']
assert self.complete('importerror') == ['ImportError']
s = "print(BaseE"
assert self.complete(s) == [s + 'xception', s + 'xceptionGroup']
if sys.version_info >= (3, 11):
assert self.complete(s) == [s + 'xception', s + 'xceptionGroup']
else:
assert self.complete(s) == [s + 'xception']
def test_nested(self):
assert self.complete('list.Insert') == ['list.insert']