]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117907: Fix test_inspect for the build with enabled tracing references (GH-117922)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 17 Apr 2024 09:50:49 +0000 (12:50 +0300)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 09:50:49 +0000 (12:50 +0300)
Lib/test/test_inspect/test_inspect.py

index e8b09c413f12da9f69b47ea7c76d707596701fa7..b2265e44e0c79b83f5cfc4233d3c8b03449c0626 100644 (file)
@@ -5338,6 +5338,8 @@ class TestSignatureDefinitions(unittest.TestCase):
 
     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):