mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -295,10 +295,6 @@ class CodeopTests(unittest.TestCase):
|
|||
self.assertNotEquals(compile_command("a = 1\n", "abc").co_filename,
|
||||
compile("a = 1\n", "def", 'single').co_filename)
|
||||
|
||||
def test_no_universal_newlines(self):
|
||||
code = compile_command("'\rfoo\r'", symbol='eval')
|
||||
self.assertEqual(eval(code), '\rfoo\r')
|
||||
|
||||
|
||||
def test_main():
|
||||
run_unittest(CodeopTests)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue