From 93015a6d844c9ad5288a18a15cb73aba214d0982 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Sun, 29 Oct 2006 03:59:57 +0000 Subject: Dropped test from testsuite if dotlock file is world-readable, this isn't required. --- test_archivemail.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test_archivemail.py b/test_archivemail.py index 1e8ca70..c403211 100755 --- a/test_archivemail.py +++ b/test_archivemail.py @@ -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() -- cgit v1.2.3