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
|
|
@ -1,6 +1,6 @@
|
|||
# Augmented assignment test.
|
||||
|
||||
from test.test_support import run_unittest
|
||||
from test.test_support import run_unittest, check_py3k_warnings
|
||||
import unittest
|
||||
|
||||
|
||||
|
|
@ -324,7 +324,8 @@ __ilshift__ called
|
|||
'''.splitlines())
|
||||
|
||||
def test_main():
|
||||
run_unittest(AugAssignTest)
|
||||
with check_py3k_warnings(("classic int division", DeprecationWarning)):
|
||||
run_unittest(AugAssignTest)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue