diff options
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-x | Lib/test/test_array.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 63f7083..004501a 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -749,7 +749,9 @@ class BaseTest(unittest.TestCase): def test_buffer(self): a = array.array(self.typecode, self.example) - b = buffer(a) + # Silence Py3k warning + with test_support.check_warnings(): + b = buffer(a) self.assertEqual(b[0], a.tostring()[0]) def test_weakref(self): |