[pypy-commit] pypy remove-tuple-smm: Remove test_setitem().

Manuel Jacob noreply at buildbot.pypy.org
Wed May 22 10:18:57 CEST 2013


Author: Manuel Jacob
Branch: remove-tuple-smm
Changeset: r64423:0e0ffca3fde2
Date: 2013-05-22 10:14 +0200
http://bitbucket.org/pypy/pypy/changeset/0e0ffca3fde2/

Log:	Remove test_setitem().

diff --git a/pypy/objspace/std/test/test_smalltupleobject.py b/pypy/objspace/std/test/test_smalltupleobject.py
--- a/pypy/objspace/std/test/test_smalltupleobject.py
+++ b/pypy/objspace/std/test/test_smalltupleobject.py
@@ -78,11 +78,3 @@
         assert not normalspace.is_true(normalspace.eq(w_tuple, w_smalltuple))
         assert smallspace.is_true(smallspace.eq(w_tuple, w_smalltuple))
         assert smallspace.is_true(smallspace.eq(normalspace.hash(w_tuple), smallspace.hash(w_smalltuple)))
-
-    def test_setitem(self):
-        w_smalltuple = self.space.newtuple([self.space.wrap(1), self.space.wrap(2)])
-        w_smalltuple.setitem(0, self.space.wrap(5))
-        list_w = w_smalltuple.tolist()
-        assert len(list_w) == 2
-        assert self.space.eq_w(list_w[0], self.space.wrap(5))
-        assert self.space.eq_w(list_w[1], self.space.wrap(2))


More information about the pypy-commit mailing list