Of course, I forgot one file in r86223.

This commit is contained in:
Éric Araujo 2010-11-05 23:59:32 +00:00
parent 89c0478c53
commit 5fd730e0fb
1 changed files with 4 additions and 2 deletions

View File

@ -42,8 +42,10 @@ class InstallScriptsTestCase(support.TempdirManager,
def write_script(name, text):
expected.append(name)
f = open(os.path.join(source, name), "w")
f.write(text)
f.close()
try:
f.write(text)
finally:
f.close()
write_script("script1.py", ("#! /usr/bin/env python2.3\n"
"# bogus script w/ Python sh-bang\n"