[pypy-commit] lang-smalltalk storage: Fixed test.
anton_gulenko
noreply at buildbot.pypy.org
Fri Jul 18 14:08:32 CEST 2014
Author: Anton Gulenko <anton.gulenko at googlemail.com>
Branch: storage
Changeset: r906:84e2ca8cd10e
Date: 2014-07-14 13:35 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/84e2ca8cd10e/
Log: Fixed test.
diff --git a/spyvm/test/test_shadow.py b/spyvm/test/test_shadow.py
--- a/spyvm/test/test_shadow.py
+++ b/spyvm/test/test_shadow.py
@@ -195,11 +195,12 @@
assert s_object.fetch(1).value == 13
def test_cached_object_shadow():
- w_o = space.wrap_list([0, 1, 2, 3, 4, 5, 6, 7])
+ l = map(space.w, [0, 1, 2, 3, 4, 5, 6, 7])
+ w_o = space.wrap_list(l)
s_o = w_o.as_cached_object_get_shadow(space)
version = s_o.version
for i in range(w_o.size()):
- assert w_o.at0(space, i) == i
+ assert w_o.at0(space, i) == l[i]
w_o.atput0(space, 0, 8)
assert version is not s_o.version
assert w_o.at0(space, 0) == 8
More information about the pypy-commit
mailing list