summaryrefslogtreecommitdiff
path: root/Lib/test/re_tests.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-10-07 10:16:19 +0000
committerFredrik Lundh <fredrik@pythonware.com>2000-10-07 10:16:19 +0000
commit025468d246cda4f9e7da098ea615e56a5f8f7f46 (patch)
treea707143c1fe3a749f14c7c3a6ba8e103ad8f95ea /Lib/test/re_tests.py
parent53f3d4ac74455e98e372af9dc7d29afd7b420644 (diff)
downloadcpython-git-025468d246cda4f9e7da098ea615e56a5f8f7f46.tar.gz
SRE didn't handle character category followed by hyphen inside a
character class. Fix provided by Andrew Kuchling. Closes bug #116251.
Diffstat (limited to 'Lib/test/re_tests.py')
-rwxr-xr-xLib/test/re_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/re_tests.py b/Lib/test/re_tests.py
index 86752244b7..7c541752f2 100755
--- a/Lib/test/re_tests.py
+++ b/Lib/test/re_tests.py
@@ -619,4 +619,6 @@ xyzabc
(r' (?x)foo ', 'foo', SUCCEED, 'found', 'foo'),
# bug 115618: negative lookahead
(r'(?<!abc)(d.f)', 'abcdefdof', SUCCEED, 'found', 'dof'),
+ # bug 116251: character class bug
+ (r'[\w-]+', 'laser_beam', SUCCEED, 'found', 'laser_beam'),
]