test_thread.py: 2.4 compatibility

This commit is contained in:
Denis Bilenko
2009-05-19 17:33:54 +07:00
parent c72f9b0279
commit a7d2b32c19

View File

@@ -116,6 +116,7 @@ for i in range(numtasks):
done.acquire()
print 'all tasks done'
if hasattr(thread, 'stack_size'):
# not all platforms support changing thread stack size
print '\n*** Changing thread stack size ***'
if thread.stack_size() != 0: