Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)