re-enable working test in Py2.4
authorStefan Behnel <scoder@users.berlios.de>
Sun, 18 Apr 2010 11:38:51 +0000 (13:38 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 18 Apr 2010 11:38:51 +0000 (13:38 +0200)
tests/run/unicodemethods.pyx

index e96829f3447cb76981cdfacb33e83bb6417773ec..c6aa8f6e5742e89cc4b482b4ec4d2970571c41d7 100644 (file)
@@ -234,12 +234,12 @@ def startswith(unicode s, sub):
 
     >>> PY_VERSION < (2,5) or text.startswith(('ab', 'ab '))
     True
-    >>> PY_VERSION < (2,5) or startswith(text, ('ab', 'ab ')) == 'MATCH'
-    True
+    >>> startswith(text, ('ab', 'ab '))
+    'MATCH'
     >>> PY_VERSION < (2,5) or not text.startswith((' ab', 'ab X'))
     True
-    >>> PY_VERSION < (2,5) or startswith(text, (' ab', 'ab X')) == 'NO MATCH'
-    True
+    >>> startswith(text, (' ab', 'ab X'))
+    'NO MATCH'
     """
     if s.startswith(sub):
         return 'MATCH'
@@ -290,11 +290,11 @@ def endswith(unicode s, sub):
 
     >>> PY_VERSION < (2,5) or text.endswith(('fsdf', 'fsdf '))
     True
-    >>> PY_VERSION < (2,5) or endswith(text, ('fsdf', 'fsdf ')) == 'MATCH'
+    >>> endswith(text, ('fsdf', 'fsdf ')) == 'MATCH'
     True
     >>> PY_VERSION < (2,5) or not text.endswith(('fsdf', 'fsdf X'))
     True
-    >>> PY_VERSION < (2,5) or endswith(text, ('fsdf', 'fsdf X')) == 'NO MATCH'
+    >>> endswith(text, ('fsdf', 'fsdf X')) == 'NO MATCH'
     True
     """
     if s.endswith(sub):
@@ -321,11 +321,11 @@ def endswith_start_end(unicode s, sub, start, end):
 
     >>> PY_VERSION < (2,5) or text.endswith(('fsd', 'fsdf'), 10, len(text)-1)
     True
-    >>> PY_VERSION < (2,5) or endswith_start_end(text, ('fsd', 'fsdf'), 10, len(text)-1) == 'MATCH'
+    >>> endswith_start_end(text, ('fsd', 'fsdf'), 10, len(text)-1) == 'MATCH'
     True
     >>> PY_VERSION < (2,5) or not text.endswith(('fsdf ', 'fsdf X'), 10, len(text)-1)
     True
-    >>> PY_VERSION < (2,5) or endswith_start_end(text, ('fsdf ', 'fsdf X'), 10, len(text)-1) == 'NO MATCH'
+    >>> endswith_start_end(text, ('fsdf ', 'fsdf X'), 10, len(text)-1) == 'NO MATCH'
     True
     """
     if s.endswith(sub, start, end):