mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
bpo-41282: Fix distutils.utils.byte_compile() DeprecationWarning (GH-25406)
* byte_compile() of distutils.utils no longer logs a DeprecationWarning * test_distutils no longer logs a DeprecationWarning
This commit is contained in:
parent
a6a5c91b1e
commit
69ca32e0d3
3 changed files with 17 additions and 7 deletions
|
@ -5,14 +5,20 @@ the test_suite() function there returns a test suite that's ready to
|
|||
be run.
|
||||
"""
|
||||
|
||||
import distutils.tests
|
||||
import test.support
|
||||
import warnings
|
||||
from test import support
|
||||
from test.support import warnings_helper
|
||||
|
||||
with warnings_helper.check_warnings(
|
||||
("The distutils package is deprecated", DeprecationWarning)):
|
||||
|
||||
import distutils.tests
|
||||
|
||||
|
||||
def test_main():
|
||||
# used by regrtest
|
||||
test.support.run_unittest(distutils.tests.test_suite())
|
||||
test.support.reap_children()
|
||||
support.run_unittest(distutils.tests.test_suite())
|
||||
support.reap_children()
|
||||
|
||||
|
||||
def load_tests(*_):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue