[Python-checkins] cpython (2.7): Fix tests for issue #5308.

serhiy.storchaka python-checkins at python.org
Wed Feb 13 11:34:27 CET 2013


http://hg.python.org/cpython/rev/72e75ea25d00
changeset:   82195:72e75ea25d00
branch:      2.7
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Wed Feb 13 12:31:19 2013 +0200
summary:
  Fix tests for issue #5308.

files:
  Lib/test/test_marshal.py |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -282,13 +282,13 @@
             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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list