Test case for Milter.config (still failing)
This commit is contained in:
+4
-1
@@ -1,4 +1,7 @@
|
||||
from ConfigParser import ConfigParser
|
||||
try:
|
||||
from configparser import ConfigParser
|
||||
except:
|
||||
from ConfigParser import ConfigParser
|
||||
import os.path
|
||||
|
||||
class MilterConfigParser(ConfigParser):
|
||||
|
||||
@@ -46,6 +46,9 @@ class TestBase(object):
|
||||
## The macros returned by protocol stage
|
||||
self._symlist = [ None, None, None, None, None, None, None ]
|
||||
|
||||
def _close(self):
|
||||
close(self.logfp)
|
||||
|
||||
def log(self,*msg):
|
||||
for i in msg: print(i,file=self.logfp,end=None)
|
||||
print(file=self.logfp)
|
||||
@@ -204,6 +207,8 @@ class TestBase(object):
|
||||
self._body.write(header)
|
||||
self._body.write(b'\n\n')
|
||||
self._body.write(body)
|
||||
self.close()
|
||||
self._close()
|
||||
return rc
|
||||
|
||||
## Feed an email contained in a file to the %milter.
|
||||
|
||||
Reference in New Issue
Block a user