Merged revisions 79191 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79191 | florent.xicluna | 2010-03-21 13:50:17 +0200 (Sun, 21 Mar 2010) | 3 lines

  No more deprecation warnings for distutils.sysconfig, following r78666.
  But when the "dl" module is available, it gives a py3k deprecation warning.
........
This commit is contained in:
Ezio Melotti 2010-08-03 07:51:50 +00:00
parent 55624a2261
commit e511c6ce8d
6 changed files with 13 additions and 12 deletions

View file

@ -5,17 +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_support.run_unittest(distutils.tests.test_suite())
test_support.reap_children()
if __name__ == "__main__":