diff options
| author | Aurélien Bompard | 2016-11-21 12:45:16 +0100 |
|---|---|---|
| committer | Aurélien Bompard | 2016-11-21 12:45:16 +0100 |
| commit | 0a5efbdf15a67f6e4065c78b0c70e72202e0d965 (patch) | |
| tree | eb4da32bbfb874f999736d8bf678870e08459818 /src/mailman/model/tests | |
| parent | 88b40de08e133122ae464de922d3a9e9c3ad1376 (diff) | |
| download | mailman-0a5efbdf15a67f6e4065c78b0c70e72202e0d965.tar.gz mailman-0a5efbdf15a67f6e4065c78b0c70e72202e0d965.tar.zst mailman-0a5efbdf15a67f6e4065c78b0c70e72202e0d965.zip | |
Fix the Flake8 ignore tags
Diffstat (limited to 'src/mailman/model/tests')
| -rw-r--r-- | src/mailman/model/tests/test_domain.py | 2 | ||||
| -rw-r--r-- | src/mailman/model/tests/test_requests.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/model/tests/test_domain.py b/src/mailman/model/tests/test_domain.py index fb7896c6e..f1bf56edf 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: E301 + def sort_key(owner): # noqa: E306 return owner.addresses[0].email self.assertEqual(sorted(domain.owners, key=sort_key), [anne, bart]) diff --git a/src/mailman/model/tests/test_requests.py b/src/mailman/model/tests/test_requests.py index 3d4f64783..63795179e 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: E301 + def id_hacker(session, flush_context, instances): # noqa: E306 for instance in session.new: if isinstance(instance, _Request): instance.id = next(counter) |
