[pypy-svn] r55473 - pypy/dist/pypy/objspace/std/test

fijal at codespeak.net fijal at codespeak.net
Sun Jun 1 18:13:36 CEST 2008


Author: fijal
Date: Sun Jun  1 18:13:34 2008
New Revision: 55473

Modified:
   pypy/dist/pypy/objspace/std/test/test_unicodeobject.py
Log:
A failing test for unicode subclasses


Modified: pypy/dist/pypy/objspace/std/test/test_unicodeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_unicodeobject.py	(original)
+++ pypy/dist/pypy/objspace/std/test/test_unicodeobject.py	Sun Jun  1 18:13:34 2008
@@ -603,3 +603,15 @@
         # the following two cases are really there to emulate a CPython bug.
         _test_concat(str, unicode)   # uses hack in add__String_Unicode()
         _test_concat(unicode, str)   # uses hack in descroperation.binop_impl()
+
+    def test_returns_subclass(self):
+        skip("Failing")
+        class X(unicode):
+            pass
+
+        class Y(object):
+            def __unicode__(self):
+                return X("stuff")
+
+        assert unicode(Y()).__class__ is X
+    



More information about the Pypy-commit mailing list