summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-01 20:30:50 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-01 20:30:50 (GMT)
commit3d9d77a3dc1f38791e734f079afa2ed57b1278f9 (patch)
treed0526a24634ef185b30bf040bc8de50d952e5fda /Lib/test/test_unicode.py
parent42e49ac0da5849cdca269fb2747f9faf5b6c7d0c (diff)
parent6c9aa8f2bf46e28de74ce11d85bcd448c0d0d529 (diff)
downloadcpython-3d9d77a3dc1f38791e734f079afa2ed57b1278f9.zip
cpython-3d9d77a3dc1f38791e734f079afa2ed57b1278f9.tar.gz
cpython-3d9d77a3dc1f38791e734f079afa2ed57b1278f9.tar.bz2
Merge 3.5
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index fac8b7b..b258db1 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -347,6 +347,10 @@ class UnicodeTest(string_tests.CommonTest,
"[a]")
self.assertEqual("[\xe9]".translate(str.maketrans({'\xe9': None})),
"[]")
+ self.assertEqual('axb'.translate(str.maketrans({'a': None, 'b': '123'})),
+ "x123")
+ self.assertEqual('axb'.translate(str.maketrans({'a': None, 'b': '\xe9'})),
+ "x\xe9")
# invalid Unicode characters
invalid_char = 0x10ffff+1