[pypy-commit] pypy celldict-versions: some more precision

cfbolz noreply at buildbot.pypy.org
Mon Jul 4 16:52:31 CEST 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: celldict-versions
Changeset: r45337:acd7e7a7d15b
Date: 2011-07-01 23:59 +0200
http://bitbucket.org/pypy/pypy/changeset/acd7e7a7d15b/

Log:	some more precision

diff --git a/pypy/objspace/std/test/test_celldict.py b/pypy/objspace/std/test/test_celldict.py
--- a/pypy/objspace/std/test/test_celldict.py
+++ b/pypy/objspace/std/test/test_celldict.py
@@ -21,21 +21,25 @@
         v2 = strategy.version
         assert v1 is not v2
         assert d.getitem("a") == 1
+        assert d.strategy.getdictvalue_no_unwrapping(d, "a") == 1
 
         d.setitem("a", 2)
         v3 = strategy.version
         assert v2 is not v3
         assert d.getitem("a") == 2
+        assert d.strategy.getdictvalue_no_unwrapping(d, "a").w_value == 2
 
         d.setitem("a", 3)
         v4 = strategy.version
         assert v3 is v4
         assert d.getitem("a") == 3
+        assert d.strategy.getdictvalue_no_unwrapping(d, "a").w_value == 3
 
         d.delitem("a")
         v5 = strategy.version
         assert v5 is not v4
         assert d.getitem("a") is None
+        assert d.strategy.getdictvalue_no_unwrapping(d, "a") is None
 
 class AppTestModuleDict(object):
     def setup_class(cls):


More information about the pypy-commit mailing list