summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c14770)
raw | patch | inline | side by side (parent: 1c14770)
author | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 19 Mar 2002 21:58:11 +0000 (21:58 +0000) | ||
committer | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 19 Mar 2002 21:58:11 +0000 (21:58 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@680 57a73879-2fb5-44c3-a270-3262357dd7e2
test/test_mailgw.py | patch | blob | history |
diff --git a/test/test_mailgw.py b/test/test_mailgw.py
index 14ca35111c3f55389449d9a334527ba7ea072bf9..2e696db90962588defcc1f937832c19b1f536f1b 100644 (file)
--- a/test/test_mailgw.py
+++ b/test/test_mailgw.py
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
-# $Id: test_mailgw.py,v 1.15 2002-03-19 06:37:00 richard Exp $
+# $Id: test_mailgw.py,v 1.16 2002-03-19 21:58:11 grubert Exp $
import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib
'''
if s1 == s2:
return
+ # under python2.1 we allow a difference of one trailing empty line.
+ if sys.version_info[0:2] == (2,1):
+ if s1+'\n' == s2:
+ return
+
l1=s1.split('\n')
l2=s2.split('\n')
s = difflib.SequenceMatcher(None, l1, l2)
#
# $Log: not supported by cvs2svn $
+# Revision 1.15 2002/03/19 06:37:00 richard
+# Made the email checking spit out a diff - much easier to spot the problem!
+#
# Revision 1.14 2002/03/18 18:32:00 rochecompaan
# All messages sent to the nosy list are now encoded as quoted-printable.
#