mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
#7092: silence more -3 and -Wd warnings
This commit is contained in:
parent
46bff79d1f
commit
ef4909643d
5 changed files with 41 additions and 33 deletions
|
|
@ -7,10 +7,15 @@ be run.
|
|||
|
||||
import distutils.tests
|
||||
import test.test_support
|
||||
import warnings
|
||||
|
||||
|
||||
def test_main():
|
||||
test.test_support.run_unittest(distutils.tests.test_suite())
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings("ignore",
|
||||
"distutils.sysconfig.\w+ is deprecated",
|
||||
DeprecationWarning)
|
||||
test.test_support.run_unittest(distutils.tests.test_suite())
|
||||
test.test_support.reap_children()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue