Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r54508:f1921fdff44d
Date: 2012-04-18 20:36 +0200
http://bitbucket.org/pypy/pypy/changeset/f1921fdff44d/

Log:    add a comment explaining why this test fails

diff --git a/pypy/objspace/std/test/test_methodcache.py 
b/pypy/objspace/std/test/test_methodcache.py
--- a/pypy/objspace/std/test/test_methodcache.py
+++ b/pypy/objspace/std/test/test_methodcache.py
@@ -53,6 +53,13 @@
         assert sum(cache_counter) == 20
  
     def test_change_methods(self):
+        # this test fails because of the following line in typeobject.py:427
+        #             if cached_name is name:
+        
+        # in py3k, identifiers are stored in W_UnicodeObject and unwrapped by
+        # calling space.str_w, which .encode('ascii') the string, thus
+        # creating new strings all the time. The problem should be solved when
+        # we implement proper unicode identifiers in py3k
         import __pypy__
         class A(object):
             def f(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to