Mercurial > cpython-lru_cache-weakref
diff Lib/test/test___future__.py @ 55062:65e41bcbc25d 3.1
Merged revisions 73782-73784 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r73782 | benjamin.peterson | 2009-07-02 16:44:01 -0500 (Thu, 02 Jul 2009) | 1 line
the old CO_FUTURE flags can't be commented out
................
r73783 | benjamin.peterson | 2009-07-02 16:54:36 -0500 (Thu, 02 Jul 2009) | 1 line
a little more fiddling to make flags like 2.x
................
r73784 | benjamin.peterson | 2009-07-02 16:55:39 -0500 (Thu, 02 Jul 2009) | 9 lines
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
........
................
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Thu, 02 Jul 2009 22:02:15 +0000 |
| parents | 9c930a32cebb |
| children | 0bb232078b8c |
line wrap: on
line diff
--- a/Lib/test/test___future__.py Thu Jul 02 14:37:32 2009 +0000 +++ b/Lib/test/test___future__.py Thu Jul 02 22:02:15 2009 +0000 @@ -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(): support.run_unittest(FutureTest)
