aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2006-10-29 03:59:57 +0000
committerNikolaus Schulz <microschulz@web.de>2006-10-29 03:59:57 +0000
commit93015a6d844c9ad5288a18a15cb73aba214d0982 (patch)
tree63e3694c53c67c5447329c76cfe6fd20e48f5bd8
parent99cfab1f4e1fbb424d9db9c5a7ba9d8cbecf0016 (diff)
downloadarchivemail-93015a6d844c9ad5288a18a15cb73aba214d0982.tar.gz
archivemail-93015a6d844c9ad5288a18a15cb73aba214d0982.tar.bz2
archivemail-93015a6d844c9ad5288a18a15cb73aba214d0982.zip
Dropped test from testsuite if dotlock file is world-readable, this isn't
required.
-rwxr-xr-xtest_archivemail.py6
1 files changed, 0 insertions, 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()