mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
More "noone expected this to run twice"ness removal.
This commit is contained in:
parent
fe27ff8936
commit
5bf2516807
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue