Author: Carl Friedrich Bolz <[email protected]>
Branch: value-profiling
Changeset: r78926:5a2800b3e912
Date: 2015-08-11 19:11 +0200
http://bitbucket.org/pypy/pypy/changeset/5a2800b3e912/

Log:    (arigo, cfbolz): make tests compatible with printing

diff --git a/pypy/objspace/std/test/test_mapdict.py 
b/pypy/objspace/std/test/test_mapdict.py
--- a/pypy/objspace/std/test/test_mapdict.py
+++ b/pypy/objspace/std/test/test_mapdict.py
@@ -14,6 +14,7 @@
 space.config = Config
 
 class Class(object):
+    name = 'testing'
     def __init__(self, hasdict=True):
         self.hasdict = True
         if hasdict:
@@ -33,7 +34,7 @@
         hasdict = False
 
 def test_plain_attribute():
-    w_cls = "class"
+    w_cls = None
     aa = PlainAttribute(("b", DICT),
                         PlainAttribute(("a", DICT),
                                        Terminator(space, w_cls)))
@@ -61,7 +62,7 @@
     assert aa.get_terminator() is aa.back.back
 
 def test_huge_chain():
-    current = Terminator(space, "cls")
+    current = Terminator(space, None)
     for i in range(20000):
         current = PlainAttribute((str(i), DICT), current)
     assert current.find_map_attr(("0", DICT)).storageindex == 0
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to