[Python-checkins] r73781 - python/trunk/Lib/test/test___future__.py
benjamin.peterson
python-checkins at python.org
Thu Jul 2 23:38:37 CEST 2009
Author: benjamin.peterson
Date: Thu Jul 2 23:38:36 2009
New Revision: 73781
Log:
test that compile() accepts the future flag
Modified:
python/trunk/Lib/test/test___future__.py
Modified: python/trunk/Lib/test/test___future__.py
==============================================================================
--- python/trunk/Lib/test/test___future__.py (original)
+++ python/trunk/Lib/test/test___future__.py Thu Jul 2 23:38:36 2009
@@ -53,9 +53,12 @@
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)
More information about the Python-checkins
mailing list