Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r65285:4f6d8c39e8cc
Date: 2013-07-09 22:04 +1000
http://bitbucket.org/pypy/pypy/changeset/4f6d8c39e8cc/

Log:    fix test

diff --git a/rpython/annotator/test/test_annrpython.py 
b/rpython/annotator/test/test_annrpython.py
--- a/rpython/annotator/test/test_annrpython.py
+++ b/rpython/annotator/test/test_annrpython.py
@@ -742,11 +742,13 @@
 
     def test_union_type_some_opbc(self):
         class A(object):
+            name = "A"
+
             def f(self):
                 return type(self)
 
         class B(A):
-            pass
+            name = "B"
 
         def f(tp):
             return tp
@@ -760,7 +762,7 @@
                 arg = inst.f()
             else:
                 arg = B
-            return f(arg).__name__
+            return f(arg).name
 
         a = self.RPythonAnnotator()
         s = a.build_types(main, [int])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to