Author: Armin Rigo <ar...@tunes.org>
Branch: space-newtext
Changeset: r90145:da67900609d3
Date: 2017-02-15 10:35 +0100
http://bitbucket.org/pypy/pypy/changeset/da67900609d3/

Log:    Fix test for py3.5

diff --git a/pypy/interpreter/test/test_gateway.py 
b/pypy/interpreter/test/test_gateway.py
--- a/pypy/interpreter/test/test_gateway.py
+++ b/pypy/interpreter/test/test_gateway.py
@@ -265,7 +265,8 @@
     def test_interp2app_unwrap_spec_text(self):
         space = self.space
         def g(space, b):
-            return space.newbytes(b)
+            assert isinstance(b, str)
+            return space.newtext(b)
         app_g = gateway.interp2app(g, unwrap_spec=[gateway.ObjSpace, 'text'])
         app_g2 = gateway.interp2app(g, unwrap_spec=[gateway.ObjSpace, 'text'])
         assert app_g is app_g2
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to