mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +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):
|
def write_script(name, text):
|
||||||
expected.append(name)
|
expected.append(name)
|
||||||
f = open(os.path.join(source, name), "w")
|
f = open(os.path.join(source, name), "w")
|
||||||
f.write(text)
|
try:
|
||||||
f.close()
|
f.write(text)
|
||||||
|
finally:
|
||||||
|
f.close()
|
||||||
|
|
||||||
write_script("script1.py", ("#! /usr/bin/env python2.3\n"
|
write_script("script1.py", ("#! /usr/bin/env python2.3\n"
|
||||||
"# bogus script w/ Python sh-bang\n"
|
"# bogus script w/ Python sh-bang\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue