mirror of
https://github.com/python/cpython.git
synced 2026-01-28 05:35:31 +00:00
More "noone expected this to run twice"ness removal.
This commit is contained in:
parent
fe27ff8936
commit
5bf2516807
@ -36,9 +36,6 @@ Attached Content.
|
||||
|
||||
"""
|
||||
|
||||
boundaries = 0
|
||||
linecount = 0
|
||||
|
||||
def getMIMEMsg(mf):
|
||||
global boundaries, linecount
|
||||
msg = mimetools.Message(mf)
|
||||
@ -57,6 +54,9 @@ def getMIMEMsg(mf):
|
||||
linecount += len(lines)
|
||||
|
||||
def test_main():
|
||||
global boundaries, linecount
|
||||
boundaries = 0
|
||||
linecount = 0
|
||||
f = cStringIO.StringIO(msg)
|
||||
getMIMEMsg(multifile.MultiFile(f))
|
||||
assert boundaries == 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user