summaryrefslogtreecommitdiff
path: root/src/mailman/model/tests
diff options
context:
space:
mode:
authorBarry Warsaw2016-07-28 23:10:56 -0400
committerBarry Warsaw2016-07-28 23:10:56 -0400
commit90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (patch)
treebb7d2df3af049c6e84d65fd25cc0258b6af6ebb9 /src/mailman/model/tests
parent86b25ba2e3bac0e034235d322c7c77080d737833 (diff)
downloadmailman-90e84bee5f47cbcdb9e9c367c60a877e325ef3e7.tar.gz
mailman-90e84bee5f47cbcdb9e9c367c60a877e325ef3e7.tar.zst
mailman-90e84bee5f47cbcdb9e9c367c60a877e325ef3e7.zip
Rebase mailman/mailman!180 and cleanup # noqa
Diffstat (limited to 'src/mailman/model/tests')
-rw-r--r--src/mailman/model/tests/test_domain.py2
-rw-r--r--src/mailman/model/tests/test_preferences.py2
-rw-r--r--src/mailman/model/tests/test_requests.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/model/tests/test_domain.py b/src/mailman/model/tests/test_domain.py
index dc0d3b5bf..fb7896c6e 100644
--- a/src/mailman/model/tests/test_domain.py
+++ b/src/mailman/model/tests/test_domain.py
@@ -122,7 +122,7 @@ class TestDomainManager(unittest.TestCase):
self.assertEqual(
sorted(owner.addresses[0].email for owner in domain.owners),
['anne@example.com', 'bart@example.com'])
- def sort_key(owner): # noqa
+ def sort_key(owner): # noqa: E301
return owner.addresses[0].email
self.assertEqual(sorted(domain.owners, key=sort_key), [anne, bart])
diff --git a/src/mailman/model/tests/test_preferences.py b/src/mailman/model/tests/test_preferences.py
index 2b9eeba96..cd8313ed4 100644
--- a/src/mailman/model/tests/test_preferences.py
+++ b/src/mailman/model/tests/test_preferences.py
@@ -41,7 +41,7 @@ class TestPreferences(unittest.TestCase):
for name in IPreferences.names():
attribute = IPreferences.getDescriptionFor(name)
if (not isinstance(attribute, Method)
- and isinstance(attribute, Attribute)): # noqa
+ and isinstance(attribute, Attribute)): # noqa: W503
attributes.append(name)
values = {
'acknowledge_posts': True,
diff --git a/src/mailman/model/tests/test_requests.py b/src/mailman/model/tests/test_requests.py
index 4135dbc4e..3d4f64783 100644
--- a/src/mailman/model/tests/test_requests.py
+++ b/src/mailman/model/tests/test_requests.py
@@ -104,7 +104,7 @@ Something else.
# value in a descending counter.
request_ids = []
counter = count(200, -1)
- def id_hacker(session, flush_context, instances): # noqa
+ def id_hacker(session, flush_context, instances): # noqa: E301
for instance in session.new:
if isinstance(instance, _Request):
instance.id = next(counter)