Esempio n. 1
0
 def test_LockType(self):
     # Make sure _thread.LockType is the same type as _thread.allocate_locke()
     self.assertIsInstance(
         _thread.allocate_lock(),
         _thread.LockType,
         "_thread.LockType is not an instance of what " "is returned by _thread.allocate_lock()",
     )
 def setUp(self):
     # Create a lock
     self.lock = _thread.allocate_lock()
 def test_LockType(self):
     self.assertIsInstance(
         _thread.allocate_lock(), _thread.LockType,
         "_thread.LockType is not an instance of what "
         "is returned by _thread.allocate_lock()")
Esempio n. 4
0
 def setUp(self):
     # Create a lock
     self.lock = _thread.allocate_lock()
 def __init__(self, contents=None):
   self.config_ = []
   self.lazy_init_lock_ = thread.allocate_lock()
   if contents is not None: self.MergeFromString(contents)
Esempio n. 6
0
 def __init__(self, contents=None):
     self.lazy_init_lock_ = thread.allocate_lock()
     if contents is not None: self.MergeFromString(contents)
 def __init__(self, contents=None):
   self.result_ = QueryResult()
   self.entity_group_key_ = Reference()
   self.lazy_init_lock_ = thread.allocate_lock()
   if contents is not None: self.MergeFromString(contents)
 def test_LockType(self):
     #Make sure _thread.LockType is the same type as _thread.allocate_locke()
     self.assertIsInstance(
         _thread.allocate_lock(), _thread.LockType,
         "_thread.LockType is not an instance of what "
         "is returned by _thread.allocate_lock()")
Esempio n. 9
0
 def test_LockType(self):
     #Make sure _thread.LockType is the same type as _thread.allocate_locke()
     self.assertTrue(isinstance(_thread.allocate_lock(), _thread.LockType),
                     "_thread.LockType is not an instance of what is "
                      "returned by _thread.allocate_lock()")
Esempio n. 10
0
 def __init__(self, contents=None):
     self.result_ = QueryResult()
     self.entity_group_key_ = Reference()
     self.lazy_init_lock_ = thread.allocate_lock()
     if contents is not None: self.MergeFromString(contents)
Esempio n. 11
0
 def setUp(self):
     self.lock = _thread.allocate_lock()
Esempio n. 12
0
 def test_LockType(self):
     self.assertIsInstance(_thread.allocate_lock(), _thread.LockType,
                           "_thread.LockType is not an instance of what "
                           "is returned by _thread.allocate_lock()")
Esempio n. 13
0
 def update_event(self, inp=-1):
     self.set_output_val(0, _dummy_thread.allocate_lock())