Lines Matching refs:MAXREPEAT
878 from _sre import MAXREPEAT
880 self.skipTest('requires _sre.MAXREPEAT constant')
882 self.assertIsNone(re.match(r".{%d}" % (MAXREPEAT - 1), string))
883 self.assertEqual(re.match(r".{,%d}" % (MAXREPEAT - 1), string).span(),
885 self.assertIsNone(re.match(r".{%d,}?" % (MAXREPEAT - 1), string))
886 self.assertRaises(OverflowError, re.compile, r".{%d}" % MAXREPEAT)
887 self.assertRaises(OverflowError, re.compile, r".{,%d}" % MAXREPEAT)
888 self.assertRaises(OverflowError, re.compile, r".{%d,}?" % MAXREPEAT)