[pypy-commit] lang-smalltalk default: (tfel, lwassermann) reintroduce the assertion

timfel noreply at buildbot.pypy.org
Thu Mar 7 11:51:43 CET 2013


Author: Tim Felgentreff <timfelgentreff at gmail.com>
Branch: 
Changeset: r130:8e362f43daa6
Date: 2013-03-07 11:06 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/8e362f43daa6/

Log:	(tfel, lwassermann) reintroduce the assertion

diff --git a/spyvm/squeakimage.py b/spyvm/squeakimage.py
--- a/spyvm/squeakimage.py
+++ b/spyvm/squeakimage.py
@@ -366,7 +366,8 @@
 
     def find_asSymbol(self, space, reader):
         w_dnu = self.special(constants.SO_DOES_NOT_UNDERSTAND)
-        # assert w_dnu.as_string() == "doesNotUnderstand:"
+        assert isinstance(w_dnu, model.W_BytesObject)
+        assert w_dnu.as_string() == "doesNotUnderstand:"
         w_Symbol = w_dnu.getclass(space)
         w_obj = None
         # bit annoying that we have to hunt through the image :-(


More information about the pypy-commit mailing list