summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-05-14 18:48:17 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-05-14 18:48:17 (GMT)
commit429b59ec6990dab19d5a0e0a91f55b5f0e850cf6 (patch)
treea703239002a5ed00ceb3d4dcb21d4ad145edc727 /Lib/test/test_re.py
parent946cfc3e238bbd67ff436af5fd05414bbd2e5a08 (diff)
downloadcpython-429b59ec6990dab19d5a0e0a91f55b5f0e850cf6.zip
cpython-429b59ec6990dab19d5a0e0a91f55b5f0e850cf6.tar.gz
cpython-429b59ec6990dab19d5a0e0a91f55b5f0e850cf6.tar.bz2
Issue #20998: Fixed re.fullmatch() of repeated single character pattern
with ignore case. Original patch by Matthew Barnett.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r--Lib/test/test_re.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index 33ccd15..0c8a52f 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -1223,6 +1223,11 @@ class ReTests(unittest.TestCase):
pat.scanner(string='abracadabra', pos=3, endpos=10).search().span(),
(7, 9))
+ def test_bug_20998(self):
+ # Issue #20998: Fullmatch of repeated single character pattern
+ # with ignore case.
+ self.assertEqual(re.fullmatch('[a-c]+', 'ABC', re.I).span(), (0, 3))
+
class PatternReprTests(unittest.TestCase):
def check(self, pattern, expected):