From: Stefan Behnel Date: Sun, 18 Apr 2010 11:39:47 +0000 (+0200) Subject: cleanup X-Git-Tag: 0.13.beta0~185 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6934ad099df573de14c560459aca2d9070dcb8d7;p=cython.git cleanup --- diff --git a/tests/run/unicodemethods.pyx b/tests/run/unicodemethods.pyx index c6aa8f6e..74336659 100644 --- a/tests/run/unicodemethods.pyx +++ b/tests/run/unicodemethods.pyx @@ -290,12 +290,12 @@ def endswith(unicode s, sub): >>> PY_VERSION < (2,5) or text.endswith(('fsdf', 'fsdf ')) True - >>> endswith(text, ('fsdf', 'fsdf ')) == 'MATCH' - True + >>> endswith(text, ('fsdf', 'fsdf ')) + 'MATCH' >>> PY_VERSION < (2,5) or not text.endswith(('fsdf', 'fsdf X')) True - >>> endswith(text, ('fsdf', 'fsdf X')) == 'NO MATCH' - True + >>> endswith(text, ('fsdf', 'fsdf X')) + 'NO MATCH' """ if s.endswith(sub): return 'MATCH' @@ -321,12 +321,12 @@ def endswith_start_end(unicode s, sub, start, end): >>> PY_VERSION < (2,5) or text.endswith(('fsd', 'fsdf'), 10, len(text)-1) True - >>> endswith_start_end(text, ('fsd', 'fsdf'), 10, len(text)-1) == 'MATCH' - True + >>> endswith_start_end(text, ('fsd', 'fsdf'), 10, len(text)-1) + 'MATCH' >>> PY_VERSION < (2,5) or not text.endswith(('fsdf ', 'fsdf X'), 10, len(text)-1) True - >>> endswith_start_end(text, ('fsdf ', 'fsdf X'), 10, len(text)-1) == 'NO MATCH' - True + >>> endswith_start_end(text, ('fsdf ', 'fsdf X'), 10, len(text)-1) + 'NO MATCH' """ if s.endswith(sub, start, end): return 'MATCH'