From: Benjamin Peterson Date: Thu, 2 Jul 2009 21:38:36 +0000 (+0000) Subject: test that compile() accepts the future flag X-Git-Tag: v2.7a1~849 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3243d8db8ff028f0268dc95decbab98169f2c4e;p=thirdparty%2FPython%2Fcpython.git test that compile() accepts the future flag --- diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py index a8c7c2e881ae..1d8f8e685250 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(): test_support.run_unittest(FutureTest)