From: Michael W. Hudson Date: Tue, 3 Aug 2004 11:14:09 +0000 (+0000) Subject: More "noone expected this to run twice"ness removal. X-Git-Tag: v2.4a2~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bf2516807d9d04654b15ea4dfd03bbf52db94fb;p=thirdparty%2FPython%2Fcpython.git More "noone expected this to run twice"ness removal. --- diff --git a/Lib/test/test_multifile.py b/Lib/test/test_multifile.py index cd89e5e6c09b..437c394e1e16 100644 --- a/Lib/test/test_multifile.py +++ b/Lib/test/test_multifile.py @@ -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