From: Serhiy Storchaka Date: Wed, 17 Apr 2024 09:50:49 +0000 (+0300) Subject: gh-117907: Fix test_inspect for the build with enabled tracing references (GH-117922) X-Git-Tag: v3.13.0b1~386 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44890b209ebe2efaf4f57eed04967948547cfa3b;p=thirdparty%2FPython%2Fcpython.git gh-117907: Fix test_inspect for the build with enabled tracing references (GH-117922) --- diff --git a/Lib/test/test_inspect/test_inspect.py b/Lib/test/test_inspect/test_inspect.py index e8b09c413f12..b2265e44e0c7 100644 --- a/Lib/test/test_inspect/test_inspect.py +++ b/Lib/test/test_inspect/test_inspect.py @@ -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):