Commit b2c57a91 authored by Benjamin Peterson's avatar Benjamin Peterson

this obviously is not going to raise any -3 warnings

parent 625af8e1
...@@ -497,14 +497,11 @@ class StructTest(unittest.TestCase): ...@@ -497,14 +497,11 @@ class StructTest(unittest.TestCase):
self.test_unpack_from(cls=buffer) self.test_unpack_from(cls=buffer)
def test_unpack_with_memoryview(self): def test_unpack_with_memoryview(self):
with check_py3k_warnings(("buffer.. not supported in 3.x",
DeprecationWarning)):
# SF bug 1563759: struct.unpack doesn't support buffer protocol objects # SF bug 1563759: struct.unpack doesn't support buffer protocol objects
data1 = memoryview('\x12\x34\x56\x78') data1 = memoryview('\x12\x34\x56\x78')
for data in [data1,]: for data in [data1,]:
value, = struct.unpack('>I', data) value, = struct.unpack('>I', data)
self.assertEqual(value, 0x12345678) self.assertEqual(value, 0x12345678)
self.test_unpack_from(cls=memoryview) self.test_unpack_from(cls=memoryview)
def test_bool(self): def test_bool(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment