[pypy-svn] r61410 - pypy/trunk/pypy/objspace/std/test
antocuni at codespeak.net
antocuni at codespeak.net
Tue Jan 27 22:00:02 CET 2009
Author: antocuni
Date: Tue Jan 27 22:00:01 2009
New Revision: 61410
Modified:
pypy/trunk/pypy/objspace/std/test/test_unicodeobject.py
Log:
enhance this test
Modified: pypy/trunk/pypy/objspace/std/test/test_unicodeobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/test/test_unicodeobject.py (original)
+++ pypy/trunk/pypy/objspace/std/test/test_unicodeobject.py Tue Jan 27 22:00:01 2009
@@ -780,5 +780,7 @@
class S(unicode):
pass
- unicode(S(u'hello \u1234'))
- # assert did not explode
+ a = S(u'hello \u1234')
+ b = unicode(a)
+ assert type(b) is unicode
+ assert b == u'hello \u1234'
More information about the Pypy-commit
mailing list