mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
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:
parent
55624a2261
commit
e511c6ce8d
6 changed files with 13 additions and 12 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue