Revision 94285814

b/lib/locking.py
226 226
        # If there are shared holders waiting (and not just scheduled to pass)
227 227
        # there *must* be an exclusive holder waiting as well; otherwise what
228 228
        # were they waiting for?
229
        assert (self.__nwait_exc > 0 or self.__npass_shr > 0 or
230
                self.__nwait_shr == 0), \
229
        assert (self.__nwait_exc > 0 or self.__npass_shr == self.__nwait_shr), \
231 230
               "Lock sharers waiting while no exclusive is queueing"
232 231

  
233 232
        # If there are no more shared holders either in or scheduled to pass,

Also available in: Unified diff