summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-04-17 09:50:49 (GMT)
committerGitHub <noreply@github.com>2024-04-17 09:50:49 (GMT)
commit44890b209ebe2efaf4f57eed04967948547cfa3b (patch)
tree2e5afb146c352e2d0b525212ab9ce60fa0a2bac2
parent8429b4565deaef7a86bffc0ce58bc0eab1d7ae48 (diff)
downloadcpython-44890b209ebe2efaf4f57eed04967948547cfa3b.zip
cpython-44890b209ebe2efaf4f57eed04967948547cfa3b.tar.gz
cpython-44890b209ebe2efaf4f57eed04967948547cfa3b.tar.bz2
gh-117907: Fix test_inspect for the build with enabled tracing references (GH-117922)
-rw-r--r--Lib/test/test_inspect/test_inspect.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_inspect/test_inspect.py b/Lib/test/test_inspect/test_inspect.py
index e8b09c4..b2265e4 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):