Author: Antonio Cuni <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to