summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-01-11 06:44:25 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-01-11 06:44:25 (GMT)
commitee46b6c5c485025a61b34a27b6235242f16b8686 (patch)
tree5eeacb8179afcc97b0f318ef74a0b0ebba5c32ef /Lib/test
parent2645936e278e0f034701db2c3378af1da589e628 (diff)
parentadfbb8e8ec7c7db027d403a443ca9c00347b987a (diff)
downloadcpython-ee46b6c5c485025a61b34a27b6235242f16b8686.zip
cpython-ee46b6c5c485025a61b34a27b6235242f16b8686.tar.gz
cpython-ee46b6c5c485025a61b34a27b6235242f16b8686.tar.bz2
#13899: merge with 3.3.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_re.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index b945203..feae7c5 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -949,6 +949,12 @@ class ReTests(unittest.TestCase):
# Test behaviour when not given a string or pattern as parameter
self.assertRaises(TypeError, re.compile, 0)
+ def test_bug_13899(self):
+ # Issue #13899: re pattern r"[\A]" should work like "A" but matches
+ # nothing. Ditto B and Z.
+ self.assertEqual(re.findall(r'[\A\B\b\C\Z]', 'AB\bCZ'),
+ ['A', 'B', '\b', 'C', 'Z'])
+
@bigmemtest(size=_2G, memuse=1)
def test_large_search(self, size):
# Issue #10182: indices were 32-bit-truncated.