MCPcopy Index your code
hub / github.com/python/cpython / test_lock_no_args

Method test_lock_no_args

Lib/test/test_threading.py:181–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

179 t.join()
180
181 def test_lock_no_args(self):
182 threading.Lock() # works
183 self.assertRaises(TypeError, threading.Lock, 1)
184 self.assertRaises(TypeError, threading.Lock, a=1)
185 self.assertRaises(TypeError, threading.Lock, 1, 2, a=1, b=2)
186
187 def test_lock_no_subclass(self):
188 # Intentionally disallow subclasses of threading.Lock because they have

Callers

nothing calls this directly

Calls 2

LockMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected