Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r75097:89fe3a968399
Date: 2014-12-23 15:36 -0800
http://bitbucket.org/pypy/pypy/changeset/89fe3a968399/

Log:    adapt to py3

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
@@ -1097,8 +1097,9 @@
 
     def test_interned_strings(self):
         source = """x = ('foo_bar42', 5); y = 'foo_bar42'; z = x[0]"""
-        exec source
-        assert y is z
+        ns = {}
+        exec(source, ns)
+        assert ns['y'] is ns['z']
 
 
 class AppTestExceptions:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to