No more deprecation warnings for distutils.sysconfig, following r78666.
But when the "dl" module is available, it gives a py3k deprecation warning.
diff --git a/Lib/test/test_distutils.py b/Lib/test/test_distutils.py
index 0a54c57..a9cbbb4 100644
--- a/Lib/test/test_distutils.py
+++ b/Lib/test/test_distutils.py
@@ -5,18 +5,13 @@
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__":