mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
#7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper.
This commit is contained in:
parent
8cb253f8d6
commit
0762788081
38 changed files with 287 additions and 181 deletions
|
|
@ -2023,7 +2023,9 @@ def test_main(run=None):
|
|||
|
||||
loadTestsFromTestCase = unittest.defaultTestLoader.loadTestsFromTestCase
|
||||
suite = unittest.TestSuite(loadTestsFromTestCase(tc) for tc in testcases)
|
||||
run(suite)
|
||||
with test_support.check_py3k_warnings(
|
||||
(".+__(get|set)slice__ has been removed", DeprecationWarning)):
|
||||
run(suite)
|
||||
|
||||
ThreadsMixin.pool.terminate()
|
||||
ProcessesMixin.pool.terminate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue