diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-07-02 21:38:36 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-07-02 21:38:36 (GMT) |
commit | d3243d8db8ff028f0268dc95decbab98169f2c4e (patch) | |
tree | f3b3d3f8a2479e70ae3dc38053b5ba22de1a1cf4 | |
parent | fbba7cdcf0c0ef93b205a12d571be5b81bcbf7a7 (diff) | |
download | cpython-d3243d8db8ff028f0268dc95decbab98169f2c4e.zip cpython-d3243d8db8ff028f0268dc95decbab98169f2c4e.tar.gz cpython-d3243d8db8ff028f0268dc95decbab98169f2c4e.tar.bz2 |
test that compile() accepts the future flag
-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 a8c7c2e..1d8f8e6 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(): test_support.run_unittest(FutureTest) |