[Python-checkins] r46918 - in python/branches/aimacintyre-sf1454481/Lib/test: output/test_thread test_thread.py test_threading.py

andrew.macintyre python-checkins at python.org
Tue Jun 13 15:44:44 CEST 2006


Author: andrew.macintyre
Date: Tue Jun 13 15:44:43 2006
New Revision: 46918
Modified:
 python/branches/aimacintyre-sf1454481/Lib/test/output/test_thread
 python/branches/aimacintyre-sf1454481/Lib/test/test_thread.py
 python/branches/aimacintyre-sf1454481/Lib/test/test_threading.py
Log:
use 1MB stack for testing, as some Linux buildbots
don't allow 4MB thread stacks...
Modified: python/branches/aimacintyre-sf1454481/Lib/test/output/test_thread
==============================================================================
--- python/branches/aimacintyre-sf1454481/Lib/test/output/test_thread	(original)
+++ python/branches/aimacintyre-sf1454481/Lib/test/output/test_thread	Tue Jun 13 15:44:43 2006
@@ -8,11 +8,11 @@
 *** Changing thread stack size ***
 caught expected ValueError setting stack_size(4096)
 successfully set stack_size(32768)
-successfully set stack_size(4194304)
+successfully set stack_size(1048576)
 successfully set stack_size(0)
 trying stack_size = 32768
 waiting for all tasks to complete
 all tasks done
-trying stack_size = 4194304
+trying stack_size = 1048576
 waiting for all tasks to complete
 all tasks done
Modified: python/branches/aimacintyre-sf1454481/Lib/test/test_thread.py
==============================================================================
--- python/branches/aimacintyre-sf1454481/Lib/test/test_thread.py	(original)
+++ python/branches/aimacintyre-sf1454481/Lib/test/test_thread.py	Tue Jun 13 15:44:43 2006
@@ -140,13 +140,13 @@
 if tss_supported:
 failed = lambda s, e: s != e
 fail_msg = "stack_size(%d) failed - should succeed"
- for tss in (32768, 0x400000, 0):
+ for tss in (32768, 0x100000, 0):
 thread.stack_size(tss)
 if failed(thread.stack_size(), tss):
 raise ValueError, fail_msg % tss
 print 'successfully set stack_size(%d)' % tss
 
- for tss in (32768, 0x400000):
+ for tss in (32768, 0x100000):
 print 'trying stack_size = %d' % tss
 next_ident = 0
 for i in range(numtasks):
Modified: python/branches/aimacintyre-sf1454481/Lib/test/test_threading.py
==============================================================================
--- python/branches/aimacintyre-sf1454481/Lib/test/test_threading.py	(original)
+++ python/branches/aimacintyre-sf1454481/Lib/test/test_threading.py	Tue Jun 13 15:44:43 2006
@@ -93,11 +93,11 @@
 self.test_various_ops()
 threading.stack_size(0)
 
- # run with a large thread stack size (4MB)
+ # run with a large thread stack size (1MB)
 def test_various_ops_large_stack(self):
 if verbose:
- print 'with 4MB thread stack size...'
- threading.stack_size(0x400000)
+ print 'with 1MB thread stack size...'
+ threading.stack_size(0x100000)
 self.test_various_ops()
 threading.stack_size(0)
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /