[pypy-commit] pypy py3k: adapt to py3

pjenvey noreply at buildbot.pypy.org
Wed Dec 24 01:25:17 CET 2014


Author: Philip Jenvey <pjenvey at 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:


More information about the pypy-commit mailing list