Message1417
Don't understand what's going on here. One of the tests in test_builtin deliberately provokes an out of memory error by executing:
list(xrange(sys.maxint // 2))
and the test is successful when the resulting MemoryError is caught. This works fine when running the test stand-alone or with regrtest with no options. However, when running regrtest -a the test fails with a java.lang.OutOfMemoryError being raised, ie it doesn't match the MemoryError in the except cause and so isn't caught.
Curiously, simply adding the statement:
import java.lang.OutOfMemoryError
to the top of test_b1.py causes the test to succeed again even under regrtest -a.
Observed on trunk with jdk 1.4 & 1.5 on linux.
- kz |
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:17:41 | admin | link | issue1654484 messages |
| 2008-02-20 17:17:41 | admin | create | |
|