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
........
This commit is contained in:
Benjamin Peterson 2009-07-02 21:55:39 +00:00
parent ffeaa88525
commit bceae0c1af
1 changed files with 3 additions and 0 deletions

View File

@ -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)