[Python-checkins] cpython (merge 3.3 -> default): Cleanup a test for issue #5308.
serhiy.storchaka
python-checkins at python.org
Wed Feb 13 11:34:29 CET 2013
http://hg.python.org/cpython/rev/e45f2fcf202c
changeset: 82197:e45f2fcf202c
parent: 82193:050c94f5f72c
parent: 82196:0407e5e5915e
user: Serhiy Storchaka <storchaka at gmail.com>
date: Wed Feb 13 12:32:47 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