Exemplo n.º 1
0
 def fakeRmlink(name):
     rmlinkPatch.restore()
     # Pretend to be another process cleaning up the lock.
     lockfile.rmlink(lockf)
     # Fall back to the real implementation of rmlink.
     return lockfile.rmlink(name)
Exemplo n.º 2
0
 def fakeRmlink(name):
     rmlinkPatch.restore()
     # Pretend to be another process cleaning up the lock.
     lockfile.rmlink(lockf)
     # Fall back to the real implementation of rmlink.
     return lockfile.rmlink(name)
Exemplo n.º 3
0
 def fakeReadlink(name):
     # Pretend to be another process releasing the lock.
     lockfile.rmlink(lockf)
     # Fall back to the real implementation of readlink.
     readlinkPatch.restore()
     return lockfile.readlink(name)
Exemplo n.º 4
0
 def fakeReadlink(name):
     # Pretend to be another process releasing the lock.
     lockfile.rmlink(lockf)
     # Fall back to the real implementation of readlink.
     readlinkPatch.restore()
     return lockfile.readlink(name)