gh-110572: Remove test_* from _testcapi/getargs.c (GH-111214)

This commit is contained in:
Nikita Sobolev 2023-10-24 08:50:11 +03:00 committed by GitHub
parent 47d3e2ed93
commit 4fbf20605b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 212 deletions

View file

@ -2159,7 +2159,7 @@ class TestThreadState(unittest.TestCase):
class Test_testcapi(unittest.TestCase):
locals().update((name, getattr(_testcapi, name))
for name in dir(_testcapi)
if name.startswith('test_') and not name.endswith('_code'))
if name.startswith('test_'))
# Suppress warning from PyUnicode_FromUnicode().
@warnings_helper.ignore_warnings(category=DeprecationWarning)