diff options
Diffstat (limited to 'Lib/test/test_compile.py')
| -rw-r--r-- | Lib/test/test_compile.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index 1fe7f5263f..1812fbc3f8 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -89,6 +89,15 @@ expect_error("2.0e+") expect_error("1e-") expect_error("3-4e/21") +if verbose: + print "testing compile() of indented block w/o trailing newline" + +s = """ +if 1: + if 2: + pass""" +compile(s, "<string>", "exec") + if verbose: print "testing literals with leading zeroes" |
