summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bigmem.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-31 10:37:15 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-31 10:37:15 (GMT)
commit7f13e6b3e2546a7d6402f969113d928cc1d58dfc (patch)
tree1b6b41e5a53beb659964a72d8f064c9ecdb0d5ed /Lib/test/test_bigmem.py
parent226878cba507cff4b6ce094063682d0b0b53cbb9 (diff)
downloadcpython-7f13e6b3e2546a7d6402f969113d928cc1d58dfc.zip
cpython-7f13e6b3e2546a7d6402f969113d928cc1d58dfc.tar.gz
cpython-7f13e6b3e2546a7d6402f969113d928cc1d58dfc.tar.bz2
string.maketrans() now produces translation tables for bytes.translate() -- wrong module?
Fix all remaining instances that did bad things with the new str.translate().
Diffstat (limited to 'Lib/test/test_bigmem.py')
-rw-r--r--Lib/test/test_bigmem.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_bigmem.py b/Lib/test/test_bigmem.py
index a6a7c24..7244e1b 100644
--- a/Lib/test/test_bigmem.py
+++ b/Lib/test/test_bigmem.py
@@ -3,7 +3,6 @@ from test.test_support import bigmemtest, _1G, _2G
import unittest
import operator
-import string
import sys
# Bigmem testing houserules:
@@ -376,7 +375,7 @@ class StrTest(unittest.TestCase):
@bigmemtest(minsize=_2G, memuse=2)
def test_translate(self, size):
- trans = string.maketrans('.aZ', '-!$')
+ trans = {ord('.'):'-', ord('a'):'!', ord('Z'):'$'}
SUBSTR = 'aZz.z.Aaz.'
sublen = len(SUBSTR)
repeats = size // sublen + 2