mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
#7092: silence some more py3k warnings.
This commit is contained in:
parent
8b3f1ce591
commit
d80b4bfd0b
9 changed files with 84 additions and 56 deletions
|
@ -79,7 +79,8 @@ class SysModuleTest(unittest.TestCase):
|
|||
self.assertTrue(value is exc)
|
||||
self.assertTrue(traceback is not None)
|
||||
|
||||
sys.exc_clear()
|
||||
with test.test_support.check_py3k_warnings():
|
||||
sys.exc_clear()
|
||||
|
||||
typ, value, traceback = sys.exc_info()
|
||||
self.assertTrue(typ is None)
|
||||
|
@ -521,7 +522,8 @@ class SizeofTest(unittest.TestCase):
|
|||
# bool
|
||||
check(True, size(h + 'l'))
|
||||
# buffer
|
||||
check(buffer(''), size(h + '2P2Pil'))
|
||||
with test.test_support.check_py3k_warnings():
|
||||
check(buffer(''), size(h + '2P2Pil'))
|
||||
# builtin_function_or_method
|
||||
check(len, size(h + '3P'))
|
||||
# bytearray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue