summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-13 10:32:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-13 10:32:24 (GMT)
commit40f42d95f552affb5d22a9c1976ebedd782c2a76 (patch)
tree3098710985b9e75447dfefef5685bcc0b72e6ead
parent5a1f152d198722aa4c36e65f952bc92e0f8ac747 (diff)
downloadcpython-40f42d95f552affb5d22a9c1976ebedd782c2a76.zip
cpython-40f42d95f552affb5d22a9c1976ebedd782c2a76.tar.gz
cpython-40f42d95f552affb5d22a9c1976ebedd782c2a76.tar.bz2
Cleanup a test for issue #5308.
-rw-r--r--Lib/test/test_marshal.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
index 230697e..025b53c 100644
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -280,7 +280,6 @@ class BugsTestCase(unittest.TestCase):
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 @@ class LargeValuesTestCase(unittest.TestCase):
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)