diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-09 20:48:36 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-09 20:48:36 +0200 |
commit | c7f7d3897e6b0eb8bbfa7957e0a19232d05b8616 (patch) | |
tree | 1207567879b1b925572432205e7a13c0be229a84 /Lib/test/test_re.py | |
parent | bf764a1912b084e5fc9acd6cb160e66060bc368a (diff) | |
download | cpython-git-c7f7d3897e6b0eb8bbfa7957e0a19232d05b8616.tar.gz |
Issue #22434: Constants in sre_constants are now named constants (enum-like).
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r-- | Lib/test/test_re.py | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 4f7e1629e5..8baf3b4f59 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -1285,22 +1285,22 @@ class ReTests(unittest.TestCase): with captured_stdout() as out: re.compile(pat, re.DEBUG) dump = '''\ -subpattern 1 - literal 46 -subpattern None - branch - in - literal 99 - literal 104 - or - literal 112 - literal 121 -subpattern None - groupref_exists 1 - at at_end - else - literal 58 - literal 32 +SUBPATTERN 1 + LITERAL 46 +SUBPATTERN None + BRANCH + IN + LITERAL 99 + LITERAL 104 + OR + LITERAL 112 + LITERAL 121 +SUBPATTERN None + GROUPREF_EXISTS 1 + AT AT_END + ELSE + LITERAL 58 + LITERAL 32 ''' self.assertEqual(out.getvalue(), dump) # Debug output is output again even a second time (bypassing |