def test_stack_size_not_None(self):
     with self.assertRaises(_thread.error) as cm:
         _thread.stack_size("")
     self.assertEqual(cm.exception.args[0],
                      "setting thread stack size not supported")
 def test_stack_size_None(self):
     retval = _thread.stack_size(None)
     self.assertEqual(retval, 0)
Exemplo n.º 3
0
 def test_stack_size_None(self):
     retval = _thread.stack_size(None)
     self.assertEqual(retval, 0)
Exemplo n.º 4
0
 def test_stack_size_not_None(self):
     with self.assertRaises(_thread.error) as cm:
         _thread.stack_size("")
     self.assertEqual(cm.exception.args[0],
                      "setting thread stack size not supported")
Exemplo n.º 5
0
 def update_event(self, inp=-1):
     self.set_output_val(0, _dummy_thread.stack_size(self.input(0)))