diff options
author | Mats Wichmann <mats@linux.com> | 2021-11-26 18:46:54 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2021-11-26 18:46:54 (GMT) |
commit | f8ce26e209fc61957a8202a01edf42ddd3e25959 (patch) | |
tree | dea26dcd63af6978418dac8fa655f9fbae1961d4 /test/scons-time | |
parent | 9649d0fd2326d607ee545625cea45cf72aab87a6 (diff) | |
download | SCons-f8ce26e209fc61957a8202a01edf42ddd3e25959.zip SCons-f8ce26e209fc61957a8202a01edf42ddd3e25959.tar.gz SCons-f8ce26e209fc61957a8202a01edf42ddd3e25959.tar.bz2 |
Fix sider complaints and add missed CHANGES.txt update
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/scons-time')
-rw-r--r-- | test/scons-time/run/config/python.py | 16 | ||||
-rw-r--r-- | test/scons-time/run/option/python.py | 10 |
2 files changed, 17 insertions, 9 deletions
diff --git a/test/scons-time/run/config/python.py b/test/scons-time/run/config/python.py index f1b8fb2..129ea0f 100644 --- a/test/scons-time/run/config/python.py +++ b/test/scons-time/run/config/python.py @@ -43,12 +43,17 @@ test.write_sample_project('foo.tar.gz') my_python_py = test.workpath('my_python.py') -test.write('config', """\ +test.write( + 'config', + """\ python = r'%(my_python_py)s' -""" % locals()) +""", +) -test.write(my_python_py, """\ -#!%(_python_)s +test.write( + my_python_py, + f"""\ +#!{_python_} import sys profile = '' for arg in sys.argv[1:]: @@ -56,7 +61,8 @@ for arg in sys.argv[1:]: profile = arg[10:] break print('my_python.py: %%s' %% profile) -""" % locals()) +""", +) os.chmod(my_python_py, 0o755) diff --git a/test/scons-time/run/option/python.py b/test/scons-time/run/option/python.py index d10267a..02890e7 100644 --- a/test/scons-time/run/option/python.py +++ b/test/scons-time/run/option/python.py @@ -32,7 +32,6 @@ import os import TestSCons_time from TestCmd import NEED_HELPER -from TestCmd import IS_WINDOWS from TestSCons_time import _python_ test = TestSCons_time.TestSCons_time() @@ -44,8 +43,10 @@ test.write_sample_project('foo.tar.gz') my_python_py = test.workpath('my_python.py') -test.write(my_python_py, """\ -#!%(_python_)s +test.write( + my_python_py, + f"""\ +#!{_python_} import sys profile = '' for arg in sys.argv[1:]: @@ -53,7 +54,8 @@ for arg in sys.argv[1:]: profile = arg[10:] break sys.stdout.write('my_python.py: %%s\\n' %% profile) -""" % locals()) +""", +) os.chmod(my_python_py, 0o755) |