[Pythonmac-SIG] stack limit for test_re

Steven Majewski sdm7g@mac.com
Fri, 12 Jul 2002 21:59:55 -0400


This is the python equivalent of doing 'limit stack 2048' in tcsh
before running test_re:

	from resource import *
	soft, hard = getrlimit( RLIMIT_STACK )
	setrlimit( RLIMIT_STACK, (1024 * 2048, hard))
	from test import test_re

It would be nice to fix this in the test suite, but I'm not
quite sure where to stick it. ( As a conditional in test_re ? )

-- Steve Majewski