Author: Armin Rigo <ar...@tunes.org>
Branch: space-newtext
Changeset: r90146:1bb0b9c53e51
Date: 2017-02-15 11:37 +0100
http://bitbucket.org/pypy/pypy/changeset/1bb0b9c53e51/

Log:    fix test for py3.5

diff --git a/pypy/objspace/std/test/test_obj.py 
b/pypy/objspace/std/test/test_obj.py
--- a/pypy/objspace/std/test/test_obj.py
+++ b/pypy/objspace/std/test/test_obj.py
@@ -278,9 +278,9 @@
 def test_isinstance_shortcut():
     from pypy.objspace.std import objspace
     space = objspace.StdObjSpace()
-    w_a = space.wrap("a")
+    w_a = space.newtext("a")
     space.type = None
     # if it crashes, it means that space._type_isinstance didn't go through
     # the fast path, and tries to call type() (which is set to None just
     # above)
-    space.isinstance_w(w_a, space.w_bytes) # does not crash
+    space.isinstance_w(w_a, space.w_text) # does not crash
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to