[Python-3000-checkins] r56447 - python/branches/py3k-struni/Lib/test/test_parser.py

guido.van.rossum python-3000-checkins at python.org
Wed Jul 18 23:00:22 CEST 2007


Author: guido.van.rossum
Date: Wed Jul 18 23:00:22 2007
New Revision: 56447

Modified:
   python/branches/py3k-struni/Lib/test/test_parser.py
Log:
Make test_parser pass after merge.


Modified: python/branches/py3k-struni/Lib/test/test_parser.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_parser.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_parser.py	Wed Jul 18 23:00:22 2007
@@ -444,9 +444,9 @@
         self.assertRaises(SyntaxError, parser.compilest, st)
 
     def test_compile_badunicode(self):
-        st = parser.suite('a = u"\U12345678"')
+        st = parser.suite('a = "\\U12345678"')
         self.assertRaises(SyntaxError, parser.compilest, st)
-        st = parser.suite('a = u"\u1"')
+        st = parser.suite('a = "\\u1"')
         self.assertRaises(SyntaxError, parser.compilest, st)
 
 def test_main():


More information about the Python-3000-checkins mailing list