summaryrefslogtreecommitdiff
path: root/Lib/test/json_tests/test_scanstring.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-18 19:29:06 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-18 19:29:06 +0100
commit5c2b6c1fc611cca464a8b42c1472fa180a2fd09d (patch)
treebb425b5c9fbcba04adb0cf51a4bb7450d15df4eb /Lib/test/json_tests/test_scanstring.py
parent0eb4aa847cd4a61b443072f6fae843c7203cc474 (diff)
parent0da3531a6234054d1da980a506c27f35a2c45046 (diff)
downloadcpython-5c2b6c1fc611cca464a8b42c1472fa180a2fd09d.tar.gz
Issue #7502: Fix equality comparison for DocTestCase instances.
Patch by Cédric Krier.
Diffstat (limited to 'Lib/test/json_tests/test_scanstring.py')
-rw-r--r--Lib/test/json_tests/test_scanstring.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/Lib/test/json_tests/test_scanstring.py b/Lib/test/json_tests/test_scanstring.py
index f82cdeead3..426c8dd3bb 100644
--- a/Lib/test/json_tests/test_scanstring.py
+++ b/Lib/test/json_tests/test_scanstring.py
@@ -9,14 +9,9 @@ class TestScanstring:
scanstring('"z\\ud834\\udd20x"', 1, True),
('z\U0001d120x', 16))
- if sys.maxunicode == 65535:
- self.assertEqual(
- scanstring('"z\U0001d120x"', 1, True),
- ('z\U0001d120x', 6))
- else:
- self.assertEqual(
- scanstring('"z\U0001d120x"', 1, True),
- ('z\U0001d120x', 5))
+ self.assertEqual(
+ scanstring('"z\U0001d120x"', 1, True),
+ ('z\U0001d120x', 5))
self.assertEqual(
scanstring('"\\u007b"', 1, True),