MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_multi_release

Method test_multi_release

python/python3/tornado/test/locks_test.py:511–516  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

509 self.assertFalse(asyncio.ensure_future(lock.acquire()).done())
510
511 def test_multi_release(self):
512 lock = locks.Lock()
513 self.assertRaises(RuntimeError, lock.release)
514 lock.acquire()
515 lock.release()
516 self.assertRaises(RuntimeError, lock.release)
517
518 @gen_test
519 def test_yield_lock(self):

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.95
releaseMethod · 0.95

Tested by

no test coverage detected