[Python-checkins] CVS: python/dist/src/Lib/test test_b1.py,1.38,1.39 test_format.py,1.12,1.13

Martin v. L?wis loewis@users.sourceforge.net
2001年8月17日 15:08:37 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv14522
Modified Files:
	test_b1.py test_format.py 
Log Message:
Use raw-unicode-escape for the tests that require it.
Index: test_b1.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_b1.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** test_b1.py	2001年08月17日 18:39:24	1.38
--- test_b1.py	2001年08月17日 22:08:34	1.39
***************
*** 257,261 ****
 if float(unicode(" 3.14 ")) != 3.14:
 raise TestFailed, 'float(u" 3.14 ")'
! if float(unicode(" \u0663.\u0661\u0664 ")) != 3.14:
 raise TestFailed, 'float(u" \u0663.\u0661\u0664 ")'
 
--- 257,261 ----
 if float(unicode(" 3.14 ")) != 3.14:
 raise TestFailed, 'float(u" 3.14 ")'
! if float(unicode(" \u0663.\u0661\u0664 ",'raw-unicode-escape')) != 3.14:
 raise TestFailed, 'float(u" \u0663.\u0661\u0664 ")'
 
***************
*** 364,368 ****
 (unicode('314'), 314),
 (unicode(' 314'), 314),
! (unicode('\u0663\u0661\u0664 '), 314),
 (unicode(' \t\t 314 \t\t '), 314),
 (unicode(' 1x'), ValueError),
--- 364,368 ----
 (unicode('314'), 314),
 (unicode(' 314'), 314),
! (unicode('\u0663\u0661\u0664 ','raw-unicode-escape'), 314),
 (unicode(' \t\t 314 \t\t '), 314),
 (unicode(' 1x'), ValueError),
Index: test_format.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_format.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_format.py	2001年08月17日 18:39:24	1.12
--- test_format.py	2001年08月17日 22:08:34	1.13
***************
*** 215,218 ****
 "unsupported format character 'a' (0x61) at index 5")
 if have_unicode:
! test_exc(unicode('abc %\u3000'), 1, ValueError,
 "unsupported format character '?' (0x3000) at index 5")
--- 215,218 ----
 "unsupported format character 'a' (0x61) at index 5")
 if have_unicode:
! test_exc(unicode('abc %\u3000','raw-unicode-escape'), 1, ValueError,
 "unsupported format character '?' (0x3000) at index 5")

AltStyle によって変換されたページ (->オリジナル) /