diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-12-18 19:29:06 +0100 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-12-18 19:29:06 +0100 |
commit | 5c2b6c1fc611cca464a8b42c1472fa180a2fd09d (patch) | |
tree | bb425b5c9fbcba04adb0cf51a4bb7450d15df4eb /Lib/test/test_multibytecodec_support.py | |
parent | 0eb4aa847cd4a61b443072f6fae843c7203cc474 (diff) | |
parent | 0da3531a6234054d1da980a506c27f35a2c45046 (diff) | |
download | cpython-5c2b6c1fc611cca464a8b42c1472fa180a2fd09d.tar.gz |
Issue #7502: Fix equality comparison for DocTestCase instances.
Patch by Cédric Krier.
Diffstat (limited to 'Lib/test/test_multibytecodec_support.py')
-rw-r--r-- | Lib/test/test_multibytecodec_support.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Lib/test/test_multibytecodec_support.py b/Lib/test/test_multibytecodec_support.py index ef63b6934d..ac3b92b6ee 100644 --- a/Lib/test/test_multibytecodec_support.py +++ b/Lib/test/test_multibytecodec_support.py @@ -264,21 +264,6 @@ class TestBase: self.assertEqual(ostream.getvalue(), self.tstring[0]) -if len('\U00012345') == 2: # ucs2 build - _unichr = chr - def chr(v): - if v >= 0x10000: - return _unichr(0xd800 + ((v - 0x10000) >> 10)) + \ - _unichr(0xdc00 + ((v - 0x10000) & 0x3ff)) - else: - return _unichr(v) - _ord = ord - def ord(c): - if len(c) == 2: - return 0x10000 + ((_ord(c[0]) - 0xd800) << 10) + \ - (ord(c[1]) - 0xdc00) - else: - return _ord(c) class TestBase_Mapping(unittest.TestCase): pass_enctest = [] |