gh-117907: Fix test_inspect for the build with enabled tracing references (GH-117922)

This commit is contained in:
Serhiy Storchaka 2024-04-17 12:50:49 +03:00 committed by GitHub
parent 8429b4565d
commit 44890b209e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5338,6 +5338,8 @@ def test_types_module_has_signatures(self):
def test_sys_module_has_signatures(self):
no_signature = {'getsizeof', 'set_asyncgen_hooks'}
no_signature |= {name for name in ['getobjects']
if hasattr(sys, name)}
self._test_module_has_signatures(sys, no_signature)
def test_abc_module_has_signatures(self):