summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2020-11-20 12:36:23 (GMT)
committerGitHub <noreply@github.com>2020-11-20 12:36:23 (GMT)
commita6109ef68d421712ba368ef502c4789e8de113e0 (patch)
tree6774e1a1d55f671febbd23e2a393339f35adb70a /Lib/test
parent2db8e35489d63b976a463fb1d2a6c29f4f965c21 (diff)
downloadcpython-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')
-rw-r--r--Lib/test/test_re.py4
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):