diff options
| author | Barry Warsaw | 2017-01-02 00:12:13 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2017-01-02 00:12:13 -0500 |
| commit | c870e3cffce626ce85efa906e72a627e123edd6a (patch) | |
| tree | d1eab4ffdb8ce6765988abc3b88bb015e2fc18d2 /src/mailman/rules/dmarc.py | |
| parent | 8eb617d2fbd7a346a2130c35dfa740b62264d58c (diff) | |
| download | mailman-c870e3cffce626ce85efa906e72a627e123edd6a.tar.gz mailman-c870e3cffce626ce85efa906e72a627e123edd6a.tar.zst mailman-c870e3cffce626ce85efa906e72a627e123edd6a.zip | |
Diffstat (limited to 'src/mailman/rules/dmarc.py')
| -rw-r--r-- | src/mailman/rules/dmarc.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mailman/rules/dmarc.py b/src/mailman/rules/dmarc.py index 90c84adda..a213a235b 100644 --- a/src/mailman/rules/dmarc.py +++ b/src/mailman/rules/dmarc.py @@ -228,7 +228,13 @@ def _DMARCProhibited(mlist, email, dmarc_domain, org=False): if mo: policy = mo.group(1).lower() else: - continue + # This continue does actually get covered by + # TestDMARCRules.test_domain_with_subdomain_policy() and + # TestDMARCRules.test_no_policy() but because of + # Coverage BitBucket issue #198 and + # http://bugs.python.org/issue2506 coverage cannot report + # it as such, so just pragma it away. + continue # pragma: no cover if policy in ('reject', 'quarantine'): vlog.info( """%s: DMARC lookup for %s (%s) |
