[pypy-commit] pypy default: add a comment to explain this test
antocuni
noreply at buildbot.pypy.org
Wed Mar 21 12:27:43 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r53865:b991bfef2fcd
Date: 2012-03-21 12:26 +0100
http://bitbucket.org/pypy/pypy/changeset/b991bfef2fcd/
Log: add a comment to explain this test
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
@@ -265,4 +265,7 @@
space = objspace.StdObjSpace()
w_a = space.wrap("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_str) # does not crash
More information about the pypy-commit
mailing list