diff options
author | Guido van Rossum <guido@python.org> | 2007-10-08 02:46:15 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-08 02:46:15 +0000 |
commit | bae07c9baf3e53164de6f85a18ce747a76b9ffde (patch) | |
tree | e0bf84063848730026bea64461fe3920dbe8ecb8 /Lib/test/test_marshal.py | |
parent | 85c1ba5d742779eec3148377ce6d8d359d318263 (diff) | |
download | cpython-git-bae07c9baf3e53164de6f85a18ce747a76b9ffde.tar.gz |
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).
Diffstat (limited to 'Lib/test/test_marshal.py')
-rw-r--r-- | Lib/test/test_marshal.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |