summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-13 10:31:19 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-13 10:31:19 (GMT)
commitec50cb292fc985c83aabccb0d30419782150cf46 (patch)
treec4787c912a9c13d8857ba194c5070c361cc6d083
parent8d7d6bcc2519066ba04f3c63d6ae8d2897a94282 (diff)
downloadcpython-ec50cb292fc985c83aabccb0d30419782150cf46.zip
cpython-ec50cb292fc985c83aabccb0d30419782150cf46.tar.gz
cpython-ec50cb292fc985c83aabccb0d30419782150cf46.tar.bz2
Fix tests for issue #5308.
-rw-r--r--Lib/test/test_marshal.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
index ba6ff8a..bbe8eac 100644
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -282,13 +282,13 @@ class LargeValuesTestCase(unittest.TestCase):
self.assertRaises(ValueError, marshal.dump, data, f)
@test_support.precisionbigmemtest(size=LARGE_SIZE, memuse=1, dry_run=False)
- def test_bytes(self, size):
- self.check_unmarshallable(b'x' * size)
+ def test_string(self, size):
+ self.check_unmarshallable('x' * size)
@test_support.precisionbigmemtest(size=LARGE_SIZE,
memuse=character_size, dry_run=False)
- def test_str(self, size):
- self.check_unmarshallable('x' * size)
+ def test_unicode(self, size):
+ self.check_unmarshallable(u'x' * size)
@test_support.precisionbigmemtest(size=LARGE_SIZE,
memuse=pointer_size, dry_run=False)