Kaydet (Commit) 7f462fc8 authored tarafından Brett Cannon's avatar Brett Cannon

Fix file closing in test_http_cookiejar.

üst 918e2d48
......@@ -263,7 +263,7 @@ class FileCookieJarTests(unittest.TestCase):
# Invalid contents of cookies file (eg. bad magic string)
# causes a LoadError.
try:
f = open(filename, "w")
with open(filename, "w") as f:
f.write("oops\n")
for cookiejar_class in LWPCookieJar, MozillaCookieJar:
c = cookiejar_class()
......
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