summaryrefslogtreecommitdiffstats
path: root/Lib/test/test___future__.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-07-02 21:55:39 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-07-02 21:55:39 (GMT)
commitbceae0c1af7fd73ef3f71e0fbe2075b964accf55 (patch)
treebfe803f5c2a7fd64ec365df4b10b9888c9c1f87f /Lib/test/test___future__.py
parentffeaa8852536cdf3f7f28a681654e383874d3f5b (diff)
downloadcpython-bceae0c1af7fd73ef3f71e0fbe2075b964accf55.zip
cpython-bceae0c1af7fd73ef3f71e0fbe2075b964accf55.tar.gz
cpython-bceae0c1af7fd73ef3f71e0fbe2075b964accf55.tar.bz2
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__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py
index ef81788..f41b879 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)