コード例 #1
0
	def test_non_reentrant_write(self):

		testLock = RWLock()
		testLock.writer_acquire()
		self.assertRaises(RuntimeError, testLock.writer_acquire, blocking=False)
		testLock.writer_release()
コード例 #2
0
    def test_non_reentrant_write(self):

        testLock = RWLock()
        testLock.writer_acquire()
        self.assertRaises(RuntimeError, testLock.writer_acquire, blocking=False)
        testLock.writer_release()
コード例 #3
0
	def test_overrelease_write(self):

		testLock = RWLock()
		testLock.writer_acquire()
		testLock.writer_release()
		self.assertRaises(RuntimeError, testLock.writer_release)
コード例 #4
0
    def test_overrelease_write(self):

        testLock = RWLock()
        testLock.writer_acquire()
        testLock.writer_release()
        self.assertRaises(RuntimeError, testLock.writer_release)