]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
More "noone expected this to run twice"ness removal.
authorMichael W. Hudson <mwh@python.net>
Tue, 3 Aug 2004 11:14:09 +0000 (11:14 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 3 Aug 2004 11:14:09 +0000 (11:14 +0000)
Lib/test/test_multifile.py

index cd89e5e6c09b8521dc08a3bf11c26affe70a3291..437c394e1e16c8dba0455d5b596e40f5d0939e04 100644 (file)
@@ -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