summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f0d1296)
raw | patch | inline | side by side (parent: f0d1296)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 9 Apr 2004 01:32:58 +0000 (01:32 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 9 Apr 2004 01:32:58 +0000 (01:32 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2272 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 371b7553327c713e121f0e2b2f3e887ff8d6007b..7599aba9b6e2c4ee3c966ccba499c80648ba8d95 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.66 2004-03-22 07:45:40 richard Exp $
+# $Id: test_mailgw.py,v 1.67 2004-04-09 01:32:58 richard Exp $
import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822
if error.errno not in (errno.ENOENT, errno.ESRCH): raise
# create the instance
init.install(self.dirname, 'templates/classic')
- init.write_select_db(self.dirname, 'anydbm')
+ init.write_select_db(self.dirname, 'sqlite')
init.initialise(self.dirname, 'sekrit')
# check we can load the package
def _handle_mail(self, message):
handler = self.instance.MailGW(self.instance, self.db)
handler.trapExceptions = 0
- return handler.main(StringIO(message))
+ ret = handler.main(StringIO(message))
+ # handler can close the db on us and open a new one
+ self.db = handler.db
+ return ret
def _get_mail(self):
f = open(SENDMAILDEBUG)