Skip to content

Commit 44890b2

Browse files
gh-117907: Fix test_inspect for the build with enabled tracing references (GH-117922)
1 parent 8429b45 commit 44890b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5338,6 +5338,8 @@ def test_types_module_has_signatures(self):
53385338

53395339
def test_sys_module_has_signatures(self):
53405340
no_signature = {'getsizeof', 'set_asyncgen_hooks'}
5341+
no_signature |= {name for name in ['getobjects']
5342+
if hasattr(sys, name)}
53415343
self._test_module_has_signatures(sys, no_signature)
53425344

53435345
def test_abc_module_has_signatures(self):

0 commit comments

Comments
 (0)