mirror of
https://git.code.sf.net/p/archivemail/code
synced 2024-12-23 00:06:43 +00:00
Dropped test from testsuite if dotlock file is world-readable, this isn't
required.
This commit is contained in:
parent
99cfab1f4e
commit
93015a6d84
1 changed files with 0 additions and 6 deletions
|
@ -141,7 +141,6 @@ class TestMboxProcmailLock(TestCaseInTempdir):
|
||||||
lock = self.mbox_name + ".lock"
|
lock = self.mbox_name + ".lock"
|
||||||
self.mbox.procmail_lock()
|
self.mbox.procmail_lock()
|
||||||
assert(os.path.isfile(lock))
|
assert(os.path.isfile(lock))
|
||||||
assert(is_world_readable(lock))
|
|
||||||
self.mbox.procmail_unlock()
|
self.mbox.procmail_unlock()
|
||||||
assert(not os.path.isfile(lock))
|
assert(not os.path.isfile(lock))
|
||||||
|
|
||||||
|
@ -1393,10 +1392,5 @@ def make_mbox(body=None, headers=None, hours_old=0, messages=1):
|
||||||
return name
|
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__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in a new issue