[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug

Antoine Pitrou report at bugs.python.org
Thu Jan 14 18:02:28 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Victor, your overflow test in the sre patch tests for TypeError, but OverflowError is actually raised:

======================================================================
ERROR: test_dealloc (test.test_re.ReTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/antoine/cpython/debug/Lib/test/test_re.py", line 711, in test_dealloc
    self.assertRaises(TypeError, _sre.compile, "abc", 0, [long_overflow])
  File "/home/antoine/cpython/debug/Lib/unittest/case.py", line 394, in assertRaises
    callableObj(*args, **kwargs)
OverflowError: regular expression code size limit exceeded

----------------------------------------------------------------------

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3299>
_______________________________________


More information about the Python-bugs-list mailing list