mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Implement PEP 393.
This commit is contained in:
parent
48d49497c5
commit
d63a3b8beb
102 changed files with 8153 additions and 5431 deletions
|
@ -780,6 +780,13 @@ class ReTests(unittest.TestCase):
|
|||
self.assertRaises(OverflowError, _sre.compile, "abc", 0, [long_overflow])
|
||||
self.assertRaises(TypeError, _sre.compile, {}, 0, [])
|
||||
|
||||
def test_search_dot_unicode(self):
|
||||
self.assertIsNotNone(re.search("123.*-", '123abc-'))
|
||||
self.assertIsNotNone(re.search("123.*-", '123\xe9-'))
|
||||
self.assertIsNotNone(re.search("123.*-", '123\u20ac-'))
|
||||
self.assertIsNotNone(re.search("123.*-", '123\U0010ffff-'))
|
||||
self.assertIsNotNone(re.search("123.*-", '123\xe9\u20ac\U0010ffff-'))
|
||||
|
||||
def run_re_tests():
|
||||
from test.re_tests import tests, SUCCEED, FAIL, SYNTAX_ERROR
|
||||
if verbose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue