Author: Ronan Lamy <[email protected]>
Branch: py3k
Changeset: r87620:941110a350e4
Date: 2016-10-07 19:00 +0100
http://bitbucket.org/pypy/pypy/changeset/941110a350e4/

Log:    Add failing test (on pypy) for obsolete __future__ import

diff --git a/pypy/interpreter/test/test_compiler.py 
b/pypy/interpreter/test/test_compiler.py
--- a/pypy/interpreter/test/test_compiler.py
+++ b/pypy/interpreter/test/test_compiler.py
@@ -763,6 +763,11 @@
         exec(s, ns)
         assert ns["x"] == .5
 
+    def test_noop_future_import(self):
+        code1 = compile("from __future__ import division", "<test>", "exec")
+        code2 = compile("", "<test>", "exec")
+        assert code1.co_flags == code2.co_flags
+
     def test_values_of_different_types(self):
         ns = {}
         exec("a = 0; c = 0.0; d = 0j", ns)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to