[Buildbot-commits] buildbot/buildbot/test test_mailparse.py, 1.9, 1.10
Brian Warner
warner at users.sourceforge.net
Wed Aug 1 20:31:21 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23538/buildbot/test
Modified Files:
test_mailparse.py
Log Message:
[project @ mail.py: parse with the 'email' module instead of the deprecated 'rfc822' module]
Original author: warner at lothar.com
Date: 2007-07-28 17:57:59+00:00
Index: test_mailparse.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_mailparse.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- test_mailparse.py 30 Jul 2007 02:42:55 -0000 1.9
+++ test_mailparse.py 1 Aug 2007 20:31:19 -0000 1.10
@@ -9,7 +9,7 @@
def get(self, msg):
msg = util.sibpath(__file__, msg)
s = mail.FCMaildirSource(None)
- return s.parse(open(msg, "r"))
+ return s.parse_file(open(msg, "r"))
def testMsg1(self):
c = self.get("mail/freshcvs.1")
@@ -112,7 +112,7 @@
def get(self, msg):
msg = util.sibpath(__file__, msg)
s = mail.FCMaildirSource(None)
- return s.parse(open(msg, "r"), prefix="Twisted/")
+ return s.parse_file(open(msg, "r"), prefix="Twisted/")
def testMsg1p(self):
c = self.get("mail/freshcvs.1")
@@ -199,12 +199,12 @@
def get(self, msg):
msg = util.sibpath(__file__, msg)
s = mail.SyncmailMaildirSource(None)
- return s.parse(open(msg, "r"), prefix="buildbot/")
+ return s.parse_file(open(msg, "r"), prefix="buildbot/")
def getNoPrefix(self, msg):
msg = util.sibpath(__file__, msg)
s = mail.SyncmailMaildirSource(None)
- return s.parse(open(msg, "r"))
+ return s.parse_file(open(msg, "r"))
def testMsgS1(self):
c = self.get("mail/syncmail.1")
@@ -255,7 +255,7 @@
def get(self, msg, prefix):
msg = util.sibpath(__file__, msg)
s = mail.SVNCommitEmailMaildirSource(None)
- return s.parse(open(msg, "r"), prefix)
+ return s.parse_file(open(msg, "r"), prefix)
def test1(self):
c = self.get("mail/svn-commit.1", "spamassassin/trunk/")
More information about the Commits
mailing list