Commit 5bf25168 authored by Michael W. Hudson's avatar Michael W. Hudson

More "noone expected this to run twice"ness removal.

parent fe27ff89
...@@ -36,9 +36,6 @@ Attached Content. ...@@ -36,9 +36,6 @@ Attached Content.
""" """
boundaries = 0
linecount = 0
def getMIMEMsg(mf): def getMIMEMsg(mf):
global boundaries, linecount global boundaries, linecount
msg = mimetools.Message(mf) msg = mimetools.Message(mf)
...@@ -57,6 +54,9 @@ def getMIMEMsg(mf): ...@@ -57,6 +54,9 @@ def getMIMEMsg(mf):
linecount += len(lines) linecount += len(lines)
def test_main(): def test_main():
global boundaries, linecount
boundaries = 0
linecount = 0
f = cStringIO.StringIO(msg) f = cStringIO.StringIO(msg)
getMIMEMsg(multifile.MultiFile(f)) getMIMEMsg(multifile.MultiFile(f))
assert boundaries == 2 assert boundaries == 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment