summaryrefslogtreecommitdiff
path: root/Lib/test/test_distutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_distutils.py')
-rw-r--r--Lib/test/test_distutils.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/Lib/test/test_distutils.py b/Lib/test/test_distutils.py
index 0a54c57095..a9cbbb46a0 100644
--- a/Lib/test/test_distutils.py
+++ b/Lib/test/test_distutils.py
@@ -5,18 +5,13 @@ the test_suite() function there returns a test suite that's ready to
be run.
"""
+from test import test_support
import distutils.tests
-import test.test_support
-import warnings
def test_main():
- 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()
+ test_support.run_unittest(distutils.tests.test_suite())
+ test_support.reap_children()
if __name__ == "__main__":