@_Repeat
  def testWaitingExclusiveBlocksSharer(self):
    return

    self.sl.acquire(shared=1)
    # the lock is acquired in shared mode...
    self._addThread(target=self._doItExclusive)
    # ...but now an exclusive is waiting...
    self._addThread(target=self._doItSharer)
    # ...so the sharer should be blocked as well
    self.assertRaises(Queue.Empty, self.done.get_nowait)
    self.sl.release()
    self._waitThreads()
    # The exclusive passed before
    self.failUnlessEqual(self.done.get_nowait(), "EXC")
    self.failUnlessEqual(self.done.get_nowait(), "SHR")
Store the status of the article before it is modified.
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.locking_unittest.py/TestSharedLock.testWaitingExclusiveBlocksSharer--crossover with--dataset/ETHPy150Open 2buntu/2buntu-blog/twobuntu/articles/models.py/set_status