-
-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Labels
Description
=================================== FAILURES ===================================
_____________________ OverloadTests.test_overload_registry _____________________
/usr/lib64/python3.11/unittest/mock.py:1356: in patched
with self.decoration_helper(patched,
/usr/lib64/python3.11/contextlib.py:137: in __enter__
return next(self.gen)
/usr/lib64/python3.11/unittest/mock.py:1338: in decoration_helper
arg = exit_stack.enter_context(patching)
/usr/lib64/python3.11/contextlib.py:499: in enter_context
result = _enter(cm)
/usr/lib64/python3.11/unittest/mock.py:1427: in __enter__
original, local = self.get_original()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <unittest.mock._patch object at 0x7fb2d2b3a490>
def get_original(self):
target = self.getter()
name = self.attribute
original = DEFAULT
local = False
try:
original = target.__dict__[name]
except (AttributeError, KeyError):
original = getattr(target, name, DEFAULT)
else:
local = True
if name in _builtins and isinstance(target, ModuleType):
self.create = True
if not self.create and original is DEFAULT:
> raise AttributeError(
"%s does not have the attribute %r" % (target, name)
)
E AttributeError: <module 'typing' from '/usr/lib64/python3.11/typing.py'> does not have the attribute '_overload_registry'
/usr/lib64/python3.11/unittest/mock.py:1400: AttributeError
=========================== short test summary info ============================
FAILED src/test_typing_extensions.py::OverloadTests::test_overload_registry
=================== 1 failed, 224 passed, 1 skipped in 0.44s ===================
See more details here: https://bugzilla.redhat.com/show_bug.cgi?id=2080868
Reactions are currently unavailable