Dropped test from testsuite if dotlock file is world-readable, this isn't

required.
This commit is contained in:
Nikolaus Schulz 2006-10-29 03:59:57 +00:00
parent 99cfab1f4e
commit 93015a6d84
1 changed files with 0 additions and 6 deletions

View File

@ -141,7 +141,6 @@ class TestMboxProcmailLock(TestCaseInTempdir):
lock = self.mbox_name + ".lock"
self.mbox.procmail_lock()
assert(os.path.isfile(lock))
assert(is_world_readable(lock))
self.mbox.procmail_unlock()
assert(not os.path.isfile(lock))
@ -1393,10 +1392,5 @@ def make_mbox(body=None, headers=None, hours_old=0, messages=1):
return name
def is_world_readable(path):
"""Return true if the path is world-readable, false otherwise"""
assert(path)
return (os.stat(path)[stat.ST_MODE] & stat.S_IROTH)
if __name__ == "__main__":
unittest.main()