Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_array.py @ 43487:8c10aac37037
Breaking ground for PEP 3137 implementation:
Get rid of buffer(). Use memoryview() in its place where possible.
In a few places, do things a bit different, because memoryview()
can't slice (yet).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 08 Oct 2007 02:46:15 +0000 |
| parents | 4e6b4ba60c3b |
| children | 47d9bbe10897 |
line wrap: on
line diff
--- a/Lib/test/test_array.py Sun Oct 07 23:12:41 2007 +0000 +++ b/Lib/test/test_array.py Mon Oct 08 02:46:15 2007 +0000 @@ -708,7 +708,7 @@ def test_buffer(self): a = array.array(self.typecode, self.example) - b = bytes(buffer(a)) + b = bytes(memoryview(a)) self.assertEqual(b[0], a.tostring()[0]) def test_weakref(self):
