mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +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
|
@ -1,4 +1,4 @@
|
|||
from test.test_support import run_unittest
|
||||
from test.test_support import run_unittest, check_py3k_warnings
|
||||
import unittest
|
||||
|
||||
class TestImplementationComparisons(unittest.TestCase):
|
||||
|
@ -32,7 +32,8 @@ class TestImplementationComparisons(unittest.TestCase):
|
|||
self.assertTrue(g_cell != h_cell)
|
||||
|
||||
def test_main():
|
||||
run_unittest(TestImplementationComparisons)
|
||||
with check_py3k_warnings():
|
||||
run_unittest(TestImplementationComparisons)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue