diff --git a/test/test_utils.py b/test/test_utils.py index 368a57a1..94c8bc60 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -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']