mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +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
|
@ -749,7 +749,8 @@ class BaseTest(unittest.TestCase):
|
|||
|
||||
def test_buffer(self):
|
||||
a = array.array(self.typecode, self.example)
|
||||
b = buffer(a)
|
||||
with test_support.check_py3k_warnings():
|
||||
b = buffer(a)
|
||||
self.assertEqual(b[0], a.tostring()[0])
|
||||
|
||||
def test_weakref(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue