def stack_size(size=None):
"""Dummy implementation of thread.stack_size()."""
if size is not None:
- msg = "setting thread stack size not supported on this platform"
- warnings.warn(msg, RuntimeWarning)
+ raise error("setting thread stack size not supported")
return 0
class LockType(object):
thread.stack_size(4096)
except ValueError:
print 'caught expected ValueError setting stack_size(4096)'
- except thread.ThreadError:
+ except thread.error:
tss_supported = 0
print 'platform does not support changing thread stack size'