https://github.com/python/cpython/commit/44890b209ebe2efaf4f57eed04967948547cfa3b
commit: 44890b209ebe2efaf4f57eed04967948547cfa3b
branch: main
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-04-17T12:50:49+03:00
summary:

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

files:
M Lib/test/test_inspect/test_inspect.py

diff --git a/Lib/test/test_inspect/test_inspect.py 
b/Lib/test/test_inspect/test_inspect.py
index e8b09c413f12da..b2265e44e0c79b 100644
--- a/Lib/test/test_inspect/test_inspect.py
+++ b/Lib/test/test_inspect/test_inspect.py
@@ -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):

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to