Message1417

Author kzuberi
Recipients
Date 2007-02-07.19:28:31
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2008-02-20 17:17:41adminlinkissue1654484 messages
2008-02-20 17:17:41admincreate