mirror of https://github.com/python/cpython
test_threading now skips testing alternate thread stack sizes on
platforms that don't support changing thread stack size.
This commit is contained in:
parent
d336e98ed9
commit
16ee33adfc
|
@ -89,7 +89,12 @@ class ThreadTests(unittest.TestCase):
|
||||||
def test_various_ops_small_stack(self):
|
def test_various_ops_small_stack(self):
|
||||||
if verbose:
|
if verbose:
|
||||||
print 'with 256kB thread stack size...'
|
print 'with 256kB thread stack size...'
|
||||||
threading.stack_size(262144)
|
try:
|
||||||
|
threading.stack_size(262144)
|
||||||
|
except thread.error:
|
||||||
|
if verbose:
|
||||||
|
print 'platform does not support changing thread stack size'
|
||||||
|
return
|
||||||
self.test_various_ops()
|
self.test_various_ops()
|
||||||
threading.stack_size(0)
|
threading.stack_size(0)
|
||||||
|
|
||||||
|
@ -97,7 +102,12 @@ class ThreadTests(unittest.TestCase):
|
||||||
def test_various_ops_large_stack(self):
|
def test_various_ops_large_stack(self):
|
||||||
if verbose:
|
if verbose:
|
||||||
print 'with 1MB thread stack size...'
|
print 'with 1MB thread stack size...'
|
||||||
threading.stack_size(0x100000)
|
try:
|
||||||
|
threading.stack_size(0x100000)
|
||||||
|
except thread.error:
|
||||||
|
if verbose:
|
||||||
|
print 'platform does not support changing thread stack size'
|
||||||
|
return
|
||||||
self.test_various_ops()
|
self.test_various_ops()
|
||||||
threading.stack_size(0)
|
threading.stack_size(0)
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,9 @@ Tests
|
||||||
|
|
||||||
- Bug #1535182: really test the xreadlines() method of bz2 objects.
|
- 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
|
Documentation
|
||||||
-------------
|
-------------
|
||||||
|
|
Loading…
Reference in New Issue