]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix tests for issue #5308.
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 13 Feb 2013 10:31:19 +0000 (12:31 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 13 Feb 2013 10:31:19 +0000 (12:31 +0200)
Lib/test/test_marshal.py

index ba6ff8a58858a7a349d15dff14b5ffa45b97ee45..bbe8eac3e68904d9f7d48b3c3ec80bb0d837acbc 100644 (file)
@@ -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)