diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-31 11:46:54 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-31 11:46:54 (GMT) |
| commit | ef4909643d6e1d07626c646137699dfc6b6346f8 (patch) | |
| tree | 191a314cb4ce6a4480bdce1e48ef7ee2b1f2eda1 /Lib/test/test_distutils.py | |
| parent | 46bff79d1ffa0308bf902fc8961365d7d2fb2c1a (diff) | |
| download | cpython-ef4909643d6e1d07626c646137699dfc6b6346f8.zip cpython-ef4909643d6e1d07626c646137699dfc6b6346f8.tar.gz cpython-ef4909643d6e1d07626c646137699dfc6b6346f8.tar.bz2 | |
#7092: silence more -3 and -Wd warnings
Diffstat (limited to 'Lib/test/test_distutils.py')
| -rw-r--r-- | Lib/test/test_distutils.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_distutils.py b/Lib/test/test_distutils.py index 2d871d3..0a54c57 100644 --- a/Lib/test/test_distutils.py +++ b/Lib/test/test_distutils.py @@ -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() |
