mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Of course, I forgot one file in r86223.
This commit is contained in:
parent
89c0478c53
commit
5fd730e0fb
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue