Issue #3299: replace PyObject_DEL() by Py_DECREF() in _sre module to fix a

crash in pydebug mode.
This commit is contained in:
Victor Stinner 2010-03-04 21:59:53 +00:00
parent f0cbd821b9
commit 5abeafbb0f
2 changed files with 2 additions and 1 deletions

View file

@ -727,6 +727,7 @@ class ReTests(unittest.TestCase):
long_overflow = 2**128
self.assertRaises(TypeError, re.finditer, "a", {})
self.assertRaises(OverflowError, _sre.compile, "abc", 0, [long_overflow])
self.assertRaises(TypeError, _sre.compile, {}, 0, [])
def run_re_tests():
from test.re_tests import benchmarks, tests, SUCCEED, FAIL, SYNTAX_ERROR