From: Benjamin Peterson Date: Thu, 2 Jul 2009 21:55:39 +0000 (+0000) Subject: Merged revisions 73781 via svnmerge from X-Git-Tag: v3.2a1~2900 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bceae0c1af7fd73ef3f71e0fbe2075b964accf55;p=python 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 ........ --- diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py index ef81788c68..f41b8799b4 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("", "", "exec", value.compiler_flag) a(isinstance(getattr(value, "compiler_flag"), int), ".compiler_flag isn't int") + def test_main(): support.run_unittest(FutureTest)