[pypy-svn] r48427 - pypy/branch/pypy-rpython-unicode/objspace/std/test
fijal at codespeak.net
fijal at codespeak.net
Thu Nov 8 19:04:23 CET 2007
Author: fijal
Date: Thu Nov 8 19:04:22 2007
New Revision: 48427
Modified:
pypy/branch/pypy-rpython-unicode/objspace/std/test/test_unicodeobject.py
Log:
Skipped test that should work
Modified: pypy/branch/pypy-rpython-unicode/objspace/std/test/test_unicodeobject.py
==============================================================================
--- pypy/branch/pypy-rpython-unicode/objspace/std/test/test_unicodeobject.py (original)
+++ pypy/branch/pypy-rpython-unicode/objspace/std/test/test_unicodeobject.py Thu Nov 8 19:04:22 2007
@@ -264,3 +264,17 @@
assert unicode(None) == u'None'
assert unicode(123) == u'123'
assert unicode([2, 3]) == u'[2, 3]'
+
+ def test_call_unicode(self):
+ skip("does not work")
+ class X:
+ def __unicode__(self):
+ return u'x'
+
+ try:
+ unicode(X(), 'ascii')
+ except TypeError, t:
+ assert 'need string or buffer' in str(t)
+ else:
+ raise Exception("DID NOT RAISE")
+
More information about the Pypy-commit
mailing list