From: SourceForge.net <no...@so...> - 2007-02-11 03:41:13
|
Bugs item #1654484, was opened at 2007-02-07 14:28 Message generated for change (Settings changed) made by cgroves You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1654484&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core >Group: targeted for 2.2beta2 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Khalid Zuberi (kzuberi) Assigned to: Nobody/Anonymous (nobody) Summary: test_builtin memory error strangeness Initial Comment: 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 ---------------------------------------------------------------------- Comment By: Charles Groves (cgroves) Date: 2007-02-07 15:43 Message: Logged In: YES user_id=1174327 Originator: NO I was looking at this last night too after seeing it in the 1.4 Windows buildslave. I can't get it to happen under 1.4 or 1.5 on the Mac, or 1.5 or 6 under Windows. It I cut regrtest.py down to running just test___all__ and then test_builtin it fails, but not with just test_builtin even from within regrtest.py. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1654484&group_id=12867 |