示例#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)
示例#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)
示例#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)
示例#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)