[Python-checkins] cpython (3.3): Cleanup a test for issue #5308.

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


http://hg.python.org/cpython/rev/0407e5e5915e
changeset:   82196:0407e5e5915e
branch:      3.3
parent:      82191:b48e1cd2d3be
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Wed Feb 13 12:32:24 2013 +0200
summary:
  Cleanup a test for issue #5308.

files:
  Lib/test/test_marshal.py |  3 +--
  1 files changed, 1 insertions(+), 2 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
@@ -280,7 +280,6 @@
         self.assertRaises(TypeError, marshal.loads, unicode_string)
 
 LARGE_SIZE = 2**31
-character_size = 4 if sys.maxunicode > 0xFFFF else 2
 pointer_size = 8 if sys.maxsize > 0xFFFFFFFF else 4
 
 class NullWriter:
@@ -296,7 +295,7 @@
     def test_bytes(self, size):
         self.check_unmarshallable(b'x' * size)
 
-    @support.bigmemtest(size=LARGE_SIZE, memuse=character_size, dry_run=False)
+    @support.bigmemtest(size=LARGE_SIZE, memuse=1, dry_run=False)
     def test_str(self, size):
         self.check_unmarshallable('x' * size)
 

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


More information about the Python-checkins mailing list