mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Merged revisions 76230 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76230 | benjamin.peterson | 2009-11-12 17:39:44 -0600 (Thu, 12 Nov 2009) | 2 lines fix several compile() issues by translating newlines in the tokenizer ........
This commit is contained in:
parent
a1d23326b1
commit
aeaa592516
8 changed files with 106 additions and 35 deletions
|
|
@ -26,7 +26,7 @@ class PEP263Test(unittest.TestCase):
|
|||
try:
|
||||
compile(b"# coding: cp932\nprint '\x94\x4e'", "dummy", "exec")
|
||||
except SyntaxError as v:
|
||||
self.assertEquals(v.text, "print '\u5e74'")
|
||||
self.assertEquals(v.text, "print '\u5e74'\n")
|
||||
else:
|
||||
self.fail()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue