summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-08 11:31:25 (GMT)
committerGitHub <noreply@github.com>2023-07-08 11:31:25 (GMT)
commit74ec02e9490d8aa086aa9ad9d1d34d2ad999b5af (patch)
treed15009477ea3684249a6f4b3b38827c2c60760ba /Lib/test/test_re.py
parentec7180bd1b3c156d4484e8e6babc5ecb707420e3 (diff)
downloadcpython-74ec02e9490d8aa086aa9ad9d1d34d2ad999b5af.zip
cpython-74ec02e9490d8aa086aa9ad9d1d34d2ad999b5af.tar.gz
cpython-74ec02e9490d8aa086aa9ad9d1d34d2ad999b5af.tar.bz2
gh-106510: Fix DEBUG output for atomic group (GH-106511)
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r--Lib/test/test_re.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index 8f26d0a..b1699b0 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -2489,7 +2489,10 @@ ELSE
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)