mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.11] gh-106510: Fix DEBUG output for atomic group (GH-106511) (GH-106549)
(cherry picked from commit 74ec02e949)
This commit is contained in:
parent
44c335e47d
commit
2d037fb406
3 changed files with 8 additions and 2 deletions
|
|
@ -2533,7 +2533,10 @@ def test_debug_flag(self):
|
|||
|
||||
def test_atomic_group(self):
|
||||
self.assertEqual(get_debug_out(r'(?>ab?)'), '''\
|
||||
ATOMIC_GROUP [(LITERAL, 97), (MAX_REPEAT, (0, 1, [(LITERAL, 98)]))]
|
||||
ATOMIC_GROUP
|
||||
LITERAL 97
|
||||
MAX_REPEAT 0 1
|
||||
LITERAL 98
|
||||
|
||||
0. INFO 4 0b0 1 2 (to 5)
|
||||
5: ATOMIC_GROUP 11 (to 17)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue