test_thread.py: 2.4 compatibility
This commit is contained in:
@@ -116,6 +116,7 @@ for i in range(numtasks):
|
|||||||
done.acquire()
|
done.acquire()
|
||||||
print 'all tasks done'
|
print 'all tasks done'
|
||||||
|
|
||||||
|
if hasattr(thread, 'stack_size'):
|
||||||
# not all platforms support changing thread stack size
|
# not all platforms support changing thread stack size
|
||||||
print '\n*** Changing thread stack size ***'
|
print '\n*** Changing thread stack size ***'
|
||||||
if thread.stack_size() != 0:
|
if thread.stack_size() != 0:
|
||||||
|
Reference in New Issue
Block a user