diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-07-02 22:02:15 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-07-02 22:02:15 (GMT) |
commit | e39d5d5f814756f66983b35b843bc00632a50451 (patch) | |
tree | 64b408d5ca53ebd6ce17163e83b00895a2c8fd6e /Lib/test/test___future__.py | |
parent | 7dfed63bcd76fc13838e205d0e3d04258f9fd372 (diff) | |
download | cpython-e39d5d5f814756f66983b35b843bc00632a50451.zip cpython-e39d5d5f814756f66983b35b843bc00632a50451.tar.gz cpython-e39d5d5f814756f66983b35b843bc00632a50451.tar.bz2 |
Merged revisions 73782-73784 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r73782 | benjamin.peterson | 2009-07-02 16:44:01 -0500 (Thu, 02 Jul 2009) | 1 line
the old CO_FUTURE flags can't be commented out
................
r73783 | benjamin.peterson | 2009-07-02 16:54:36 -0500 (Thu, 02 Jul 2009) | 1 line
a little more fiddling to make flags like 2.x
................
r73784 | benjamin.peterson | 2009-07-02 16:55:39 -0500 (Thu, 02 Jul 2009) | 9 lines
Merged revisions 73781 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73781 | benjamin.peterson | 2009-07-02 16:38:36 -0500 (Thu, 02 Jul 2009) | 1 line
test that compile() accepts the future flag
........
................
Diffstat (limited to 'Lib/test/test___future__.py')
-rw-r--r-- | Lib/test/test___future__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py index 77006e1..9d98746 100644 --- a/Lib/test/test___future__.py +++ b/Lib/test/test___future__.py @@ -53,9 +53,12 @@ class FutureTest(unittest.TestCase): a(hasattr(value, "compiler_flag"), "feature is missing a .compiler_flag attr") + # Make sure the compile accepts the flag. + compile("", "<test>", "exec", value.compiler_flag) a(isinstance(getattr(value, "compiler_flag"), int), ".compiler_flag isn't int") + def test_main(): support.run_unittest(FutureTest) |