Skip to content

Commit 908c6c1

Browse files
test_mailgw.py fixing the MIME-Version and Precedence duplicate headers of testUnknownUser (partly issue2550877)
1 parent 94d8087 commit 908c6c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_mailgw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def compareMessages(self, new, old):
6262
old = email.message_from_string(old.strip())
6363

6464
# all Roundup-generated messages have "Precedence: bulk"
65-
old['Precedence'] = 'bulk'
65+
if 'Precedence' not in old:
66+
old['Precedence'] = 'bulk'
6667

6768
# don't try to compare the date
6869
del new['date'], old['date']
@@ -2052,7 +2053,6 @@ def testUnknownUser(self):
20522053
X-Roundup-Name: Roundup issue tracker
20532054
X-Roundup-Loop: hello
20542055
X-Roundup-Version: 1.4.8
2055-
MIME-Version: 1.0
20562056
20572057
--===============0639262320==
20582058
Content-Type: text/plain; charset="us-ascii"

0 commit comments

Comments
 (0)