summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_b1.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-08-17 22:08:34 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-08-17 22:08:34 (GMT)
commit10d72552495a1967af7174f6ed52eb3340799c76 (patch)
treecab4337eda97217f4237c119b1d572ee90a276dc /Lib/test/test_b1.py
parent5d815f323bad407db37b428403df81d1b76018a5 (diff)
downloadcpython-10d72552495a1967af7174f6ed52eb3340799c76.zip
cpython-10d72552495a1967af7174f6ed52eb3340799c76.tar.gz
cpython-10d72552495a1967af7174f6ed52eb3340799c76.tar.bz2
Use raw-unicode-escape for the tests that require it.
Diffstat (limited to 'Lib/test/test_b1.py')
-rw-r--r--Lib/test/test_b1.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py
index 18b426f..46a6da0 100644
--- a/Lib/test/test_b1.py
+++ b/Lib/test/test_b1.py
@@ -256,7 +256,7 @@ if float(" 3.14 ") != 3.14: raise TestFailed, 'float(" 3.14 ")'
if have_unicode:
if float(unicode(" 3.14 ")) != 3.14:
raise TestFailed, 'float(u" 3.14 ")'
- if float(unicode(" \u0663.\u0661\u0664 ")) != 3.14:
+ if float(unicode(" \u0663.\u0661\u0664 ",'raw-unicode-escape')) != 3.14:
raise TestFailed, 'float(u" \u0663.\u0661\u0664 ")'
print 'getattr'
@@ -363,7 +363,7 @@ if have_unicode:
(unicode('100'), 100),
(unicode('314'), 314),
(unicode(' 314'), 314),
- (unicode('\u0663\u0661\u0664 '), 314),
+ (unicode('\u0663\u0661\u0664 ','raw-unicode-escape'), 314),
(unicode(' \t\t 314 \t\t '), 314),
(unicode(' 1x'), ValueError),
(unicode(' 1 '), 1),