Author: Anton Gulenko <[email protected]>
Branch: storage
Changeset: r703:9f2f59e9acaf
Date: 2014-03-26 15:55 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/9f2f59e9acaf/
Log: test_wrapper also needs a bootstrapped space. Removed breakpoint.
Fixed RPython compile error.
diff --git a/spyvm/objspace.py b/spyvm/objspace.py
--- a/spyvm/objspace.py
+++ b/spyvm/objspace.py
@@ -45,7 +45,7 @@
for name, idx in constants.objects_in_special_object_table.items():
name = "w_" + name
if not name in self.objtable or not self.objtable[name]:
- self.add_bootstrap_object(name, specials[idx])
+ self.objtable[name] = specials[idx]
def executable_path(self):
return self._executable_path[0]
diff --git a/spyvm/shadow.py b/spyvm/shadow.py
--- a/spyvm/shadow.py
+++ b/spyvm/shadow.py
@@ -404,7 +404,6 @@
# raise ClassShadowError("bogus selector in method dict")
w_compiledmethod = w_values.fetch(self.space, i)
if not isinstance(w_compiledmethod, model.W_CompiledMethod):
- import pdb; pdb.set_trace()
raise ClassShadowError("The methoddict must contain "
"CompiledMethods only, for now. "
"If the value observed is nil, our "
diff --git a/spyvm/test/test_wrapper.py b/spyvm/test/test_wrapper.py
--- a/spyvm/test/test_wrapper.py
+++ b/spyvm/test/test_wrapper.py
@@ -5,7 +5,7 @@
from spyvm.test.test_interpreter import _new_frame
def setup_module():
- space = create_space()
+ space = create_space(bootstrap = True)
copy_to_module(locals(), __name__)
def teardown_module():
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit