diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2020-11-20 12:36:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 12:36:23 (GMT) |
commit | a6109ef68d421712ba368ef502c4789e8de113e0 (patch) | |
tree | 6774e1a1d55f671febbd23e2a393339f35adb70a /Lib/test/test_re.py | |
parent | 2db8e35489d63b976a463fb1d2a6c29f4f965c21 (diff) | |
download | cpython-a6109ef68d421712ba368ef502c4789e8de113e0.zip cpython-a6109ef68d421712ba368ef502c4789e8de113e0.tar.gz cpython-a6109ef68d421712ba368ef502c4789e8de113e0.tar.bz2 |
bpo-1635741: Convert _sre types to heap types and establish module state (PEP 384) (GH-23393)
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r-- | Lib/test/test_re.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 1bfbcb8..c1d02cf 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -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): |