Skip to content

Commit

Permalink
bpo-1635741: Convert _sre types to heap types and establish module st…
Browse files Browse the repository at this point in the history
…ate (PEP 384) (pythonGH-23393)
  • Loading branch information
Erlend Egeberg Aasland authored and adorilson committed Mar 11, 2021
1 parent 7a1af5e commit acdf30c
Show file tree
Hide file tree
Showing 4 changed files with 374 additions and 483 deletions.
4 changes: 4 additions & 0 deletions Lib/test/test_re.py
Original file line number Diff line number Diff line change
Expand Up @@ -2197,6 +2197,10 @@ def test_overlap_table(self):
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):

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Convert _sre module types to heap types (PEP 384). Patch by Erlend E.
Aasland.
Loading

0 comments on commit acdf30c

Please sign in to comment.