From b3f76b1bf9b0b5ca50d4b7b4d1d37fdbfeafa4aa Mon Sep 17 00:00:00 2001 From: EXPLOSION Date: Wed, 12 Jun 2024 09:42:30 -0400 Subject: [PATCH] Try to pick up patterns in what allows what --- src/trio/_tests/test_exports.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/trio/_tests/test_exports.py b/src/trio/_tests/test_exports.py index 671d5dc4ec..b9a5d51cf9 100644 --- a/src/trio/_tests/test_exports.py +++ b/src/trio/_tests/test_exports.py @@ -402,9 +402,13 @@ def lookup_symbol(symbol: str) -> dict[str, str]: # being missing if sys.version_info >= (3, 13): - print(class_, missing) - missing.remove("__firstlineno__") - missing.remove("__static_attributes__") + try: + missing.remove("__firstlineno__") + missing.remove("__static_attributes__") + except: + print(f"FAILED: {class_}; {static_names}") + else: + print(f"SUCCESS: {class_}") if ( tool == "jedi"