cpython: 9d335a54d728 (original) (raw)

Mercurial > cpython

changeset 92348:9d335a54d728

Issue #22221: Add tests for compile() with source encoding cookie. [#22221]

Serhiy Storchaka storchaka@gmail.com
date Fri, 05 Sep 2014 11:01:43 +0300
parents 858747aac9e9(current diff)13cd8ea4cafe(diff)
children 060e347c9a23
files
diffstat 1 files changed, 20 insertions(+), 3 deletions(-)[+] [-] Lib/test/test_compile.py 23

line wrap: on

line diff

--- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -304,9 +304,26 @@ if 1: l = lambda: "foo" self.assertIsNone(l.doc) -## def test_unicode_encoding(self): -## code = "# -- coding: utf-8 --\npass\n" -## self.assertRaises(SyntaxError, compile, code, "tmp", "exec")

def test_subscripts(self): # SF bug 1448804