summaryrefslogtreecommitdiff
path: root/mailman/tests
diff options
context:
space:
mode:
authorBarry Warsaw2009-01-04 19:41:05 -0500
committerBarry Warsaw2009-01-04 19:41:05 -0500
commitf6d998b93b0dd8978eadc9abc4c3964e3fe66bf7 (patch)
treefc64f36b862ae61965e8d23fd00e56dcac1a5ee3 /mailman/tests
parent706c3853103f53955068cc429c0bd6d1f8fb6dd0 (diff)
downloadmailman-f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7.tar.gz
mailman-f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7.tar.zst
mailman-f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7.zip
Picking some (py)lint.
Diffstat (limited to 'mailman/tests')
-rw-r--r--mailman/tests/test_membership.py5
-rw-r--r--mailman/tests/test_security_mgr.py13
2 files changed, 10 insertions, 8 deletions
diff --git a/mailman/tests/test_membership.py b/mailman/tests/test_membership.py
index b50b2390e..fdb00eec9 100644
--- a/mailman/tests/test_membership.py
+++ b/mailman/tests/test_membership.py
@@ -17,11 +17,9 @@
"""Unit tests for OldStyleMemberships."""
-import os
import time
import unittest
-from mailman import Utils
from mailman import passwords
from mailman.config import config
from mailman.core.errors import NotAMemberError
@@ -136,7 +134,8 @@ class TestMembers(unittest.TestCase):
eq = self.assertEqual
raises = self.assertRaises
# We don't really care what the bounce info is
- class Info: pass
+ class Info:
+ pass
info = Info()
mlist = self._mlist
mlist.setBounceInfo('person@dom.ain', info)
diff --git a/mailman/tests/test_security_mgr.py b/mailman/tests/test_security_mgr.py
index 76f242104..a70129210 100644
--- a/mailman/tests/test_security_mgr.py
+++ b/mailman/tests/test_security_mgr.py
@@ -19,7 +19,6 @@
import os
import errno
-import Cookie
import unittest
# Don't use cStringIO because we're going to inherit
@@ -88,11 +87,13 @@ class TestAuthenticate(unittest.TestCase):
try:
os.unlink(config.SITE_PW_FILE)
except OSError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
try:
os.unlink(config.LISTCREATOR_PW_FILE)
except OSError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
def test_auth_creator(self):
self.assertEqual(self._mlist.Authenticate(
@@ -187,11 +188,13 @@ class TestWebAuthenticate(unittest.TestCase):
try:
os.unlink(config.SITE_PW_FILE)
except OSError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
try:
os.unlink(config.LISTCREATOR_PW_FILE)
except OSError, e:
- if e.errno <> errno.ENOENT: raise
+ if e.errno <> errno.ENOENT:
+ raise
del os.environ['HTTP_COOKIE']
def test_auth_site_admin(self):