From fedb1a5eb0d74446f6d431db2920ab5f1e1d5b18 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 2 May 2026 00:22:06 +0200 Subject: [PATCH] Fix 3.10 tests in one more case --- test/test_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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']