From bae07c9baf3e53164de6f85a18ce747a76b9ffde Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 8 Oct 2007 02:46:15 +0000 Subject: 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). --- Lib/test/test_marshal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_marshal.py') diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py index 47e610f4f2..3e44886d68 100644 --- a/Lib/test/test_marshal.py +++ b/Lib/test/test_marshal.py @@ -98,9 +98,9 @@ class StringTestCase(unittest.TestCase, HelperMixin): for s in ["", "Andr\xe8 Previn", "abc", " "*10000]: self.helper(s) - def test_buffer(self): + def test_bytes(self): for s in [b"", b"Andr\xe8 Previn", b"abc", b" "*10000]: - self.helper(buffer(s)) + self.helper(s) class ExceptionTestCase(unittest.TestCase): def test_exceptions(self): -- cgit v1.2.1