Kaydet (Commit) 16ee33ad authored tarafından Andrew MacIntyre's avatar Andrew MacIntyre

test_threading now skips testing alternate thread stack sizes on

platforms that don't support changing thread stack size.
üst d336e98e
......@@ -89,7 +89,12 @@ class ThreadTests(unittest.TestCase):
def test_various_ops_small_stack(self):
if verbose:
print 'with 256kB thread stack size...'
try:
threading.stack_size(262144)
except thread.error:
if verbose:
print 'platform does not support changing thread stack size'
return
self.test_various_ops()
threading.stack_size(0)
......@@ -97,7 +102,12 @@ class ThreadTests(unittest.TestCase):
def test_various_ops_large_stack(self):
if verbose:
print 'with 1MB thread stack size...'
try:
threading.stack_size(0x100000)
except thread.error:
if verbose:
print 'platform does not support changing thread stack size'
return
self.test_various_ops()
threading.stack_size(0)
......
......@@ -53,6 +53,9 @@ Tests
- Bug #1535182: really test the xreadlines() method of bz2 objects.
- test_threading now skips testing alternate thread stack sizes on
platforms that don't support changing thread stack size.
Documentation
-------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment