[pypy-commit] pypy py3k: the re.UNICODE flags is by default now. Disable it explicitly for the test
antocuni
noreply at buildbot.pypy.org
Wed May 2 18:37:38 CEST 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r54875:b1fd67622c9e
Date: 2012-05-02 18:28 +0200
http://bitbucket.org/pypy/pypy/changeset/b1fd67622c9e/
Log: the re.UNICODE flags is by default now. Disable it explicitly for
the test
diff --git a/pypy/module/_sre/test/test_app_sre.py b/pypy/module/_sre/test/test_app_sre.py
--- a/pypy/module/_sre/test/test_app_sre.py
+++ b/pypy/module/_sre/test/test_app_sre.py
@@ -373,12 +373,12 @@
def test_search_simple_boundaries(self):
import re
- UPPER_PI = u"\u03a0"
+ UPPER_PI = "\u03a0"
assert re.search(r"bla\b", "bla")
assert re.search(r"bla\b", "bla ja")
- assert re.search(r"bla\b", u"bla%s" % UPPER_PI)
+ assert re.search(r"bla\b", "bla%s" % UPPER_PI, re.ASCII)
assert not re.search(r"bla\b", "blano")
- assert not re.search(r"bla\b", u"bla%s" % UPPER_PI, re.UNICODE)
+ assert not re.search(r"bla\b", "bla%s" % UPPER_PI, re.UNICODE)
def test_search_simple_categories(self):
import re
More information about the pypy-commit
mailing list