mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-106566: Optimize (?!) in regular expressions (GH-106567)
This commit is contained in:
parent
50e3cc9748
commit
ed64204716
3 changed files with 7 additions and 1 deletions
|
@ -2362,6 +2362,9 @@ class ReTests(unittest.TestCase):
|
|||
p.terminate()
|
||||
p.join()
|
||||
|
||||
def test_fail(self):
|
||||
self.assertEqual(re.search(r'12(?!)|3', '123')[0], '3')
|
||||
|
||||
|
||||
def get_debug_out(pat):
|
||||
with captured_stdout() as out:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue