summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_distutils.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-21 11:50:17 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-21 11:50:17 (GMT)
commit3f5d146323fe306de7ddccb2506a7161554cc330 (patch)
tree6fc42ed8a610fcdea9a8155ba24b62286ad8c9ad /Lib/test/test_distutils.py
parentaf61719ec354015566028250a2912efa30f4cda4 (diff)
downloadcpython-3f5d146323fe306de7ddccb2506a7161554cc330.zip
cpython-3f5d146323fe306de7ddccb2506a7161554cc330.tar.gz
cpython-3f5d146323fe306de7ddccb2506a7161554cc330.tar.bz2
No more deprecation warnings for distutils.sysconfig, following r78666.
But when the "dl" module is available, it gives a py3k deprecation warning.
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 0a54c57..a9cbbb4 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__":