[pypy-svn] r48723 - pypy/branch/ropes-unicode/pypy/objspace/std/test

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Nov 16 00:28:41 CET 2007


Author: cfbolz
Date: Fri Nov 16 00:28:38 2007
New Revision: 48723

Modified:
   pypy/branch/ropes-unicode/pypy/objspace/std/test/test_unicodeobject.py
Log:
a failing unicode test


Modified: pypy/branch/ropes-unicode/pypy/objspace/std/test/test_unicodeobject.py
==============================================================================
--- pypy/branch/ropes-unicode/pypy/objspace/std/test/test_unicodeobject.py	(original)
+++ pypy/branch/ropes-unicode/pypy/objspace/std/test/test_unicodeobject.py	Fri Nov 16 00:28:38 2007
@@ -305,6 +305,16 @@
         assert not u'hello'.startswith((u'he', u'hel'), 0, 1)
         assert u'hello'.startswith((u'he', u'hel'), 0, 2)
         raises(TypeError, u'hello'.startswith, (42,))
+
+    def test_startswith_endswith_convert(self):
+        py.test.skip("fix me")
+        assert 'hello'.startswith((u'he\u1111', u'he'))
+        assert not 'hello'.startswith((u'lo\u1111', u'llo'))
+        assert 'hello'.startswith((u'hellox\u1111', u'hello'))
+        assert 'hello'.startswith((u'lo', u'he\u1111'), 0, -1)
+        assert not 'hello'.endswith((u'he\u1111', u'he'))
+        assert 'hello'.endswith((u'\u1111lo', u'llo'))
+        assert 'hello'.endswith((u'\u1111hellox', u'hello'))
     
     def test_endswith(self):
         assert u'ab'.endswith(u'ab') is True



More information about the Pypy-commit mailing list