(self)
| 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 |
nothing calls this directly
no test coverage detected