Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)