mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-1635741: Convert _sre types to heap types and establish module state (PEP 384) (GH-23393)
This commit is contained in:
parent
2db8e35489
commit
a6109ef68d
4 changed files with 383 additions and 492 deletions
|
@ -2197,6 +2197,10 @@ class ImplementationTest(unittest.TestCase):
|
|||
self.assertEqual(f("ababba"), [0, 0, 1, 2, 0, 1])
|
||||
self.assertEqual(f("abcabdac"), [0, 0, 0, 1, 2, 0, 1, 0])
|
||||
|
||||
def test_signedness(self):
|
||||
self.assertGreaterEqual(sre_compile.MAXREPEAT, 0)
|
||||
self.assertGreaterEqual(sre_compile.MAXGROUPS, 0)
|
||||
|
||||
|
||||
class ExternalTests(unittest.TestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue