mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
#13899: merge with 3.2.
This commit is contained in:
commit
adfbb8e8ec
3 changed files with 10 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue