消息 [97774]
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
---------------------------------------------------------------------- |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-01-14 17:02:30 | pitrou | 修改 | recipients:
+ pitrou, effbot, georg.brandl, jcea, ncoghlan, Rhamphoryncus, vstinner, timehorse |
| 2010-01-14 17:02:28 | pitrou | 修改 | messageid: <1263488548.04.0.00271458300198.issue3299@psf.upfronthosting.co.za> |
| 2010-01-14 17:02:26 | pitrou | 链接 | issue3299 messages |
| 2010-01-14 17:02:25 | pitrou | 创建 | |
|