diff --git a/tests/test_from_schema.py b/tests/test_from_schema.py index 1ad4553..833e98b 100644 --- a/tests/test_from_schema.py +++ b/tests/test_from_schema.py @@ -314,9 +314,9 @@ def inner(*args, **kwargs): assert name not in RECURSIVE_REFS except ( jsonschema.exceptions._RefResolutionError, - wre := getattr(jsonschema.exceptions, "_WrappedReferencingError", ()), + W := getattr(jsonschema.exceptions, "_WrappedReferencingError", ()), # noqa ) as err: - if isinstance(err, wre) and isinstance( + if isinstance(err, W) and isinstance( err._wrapped, jsonschema.exceptions._Unresolvable ): pytest.xfail()