summaryrefslogtreecommitdiffstats
path: root/test/sconsign
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-11-26 18:46:54 (GMT)
committerMats Wichmann <mats@linux.com>2021-11-26 18:46:54 (GMT)
commitf8ce26e209fc61957a8202a01edf42ddd3e25959 (patch)
treedea26dcd63af6978418dac8fa655f9fbae1961d4 /test/sconsign
parent9649d0fd2326d607ee545625cea45cf72aab87a6 (diff)
downloadSCons-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/sconsign')
-rw-r--r--test/sconsign/script/SConsignFile.py18
-rw-r--r--test/sconsign/script/Signatures.py18
-rw-r--r--test/sconsign/script/no-SConsignFile.py18
3 files changed, 36 insertions, 18 deletions
diff --git a/test/sconsign/script/SConsignFile.py b/test/sconsign/script/SConsignFile.py
index 569e5e6..d19cfab 100644
--- a/test/sconsign/script/SConsignFile.py
+++ b/test/sconsign/script/SConsignFile.py
@@ -44,7 +44,9 @@ test.subdir('sub1', 'sub2')
fake_cc_py = test.workpath('fake_cc.py')
fake_link_py = test.workpath('fake_link.py')
-test.write(fake_cc_py, fr"""#!{_python_}
+test.write(
+ fake_cc_py,
+ fr"""#!{_python_}
import os
import re
import sys
@@ -75,10 +77,12 @@ with open(sys.argv[2], 'w') as outf, open(sys.argv[3], 'r') as ifp:
process(ifp, outf)
sys.exit(0)
-"""
+""",
)
-test.write(fake_link_py, fr"""#!{_python_}
+test.write(
+ fake_link_py,
+ fr"""#!{_python_}
import sys
with open(sys.argv[1], 'w') as outf, open(sys.argv[2], 'r') as ifp:
@@ -86,7 +90,7 @@ with open(sys.argv[1], 'w') as outf, open(sys.argv[2], 'r') as ifp:
outf.write(ifp.read())
sys.exit(0)
-"""
+""",
)
test.chmod(fake_cc_py, 0o755)
@@ -103,7 +107,9 @@ sub2_hello_obj = 'sub2/hello.obj'
sub2_inc1_h = 'sub2/inc1.h'
sub2_inc2_h = 'sub2/inc2.h'
-test.write(['SConstruct'], f"""\
+test.write(
+ ['SConstruct'],
+ f"""\
SConsignFile()
env1 = Environment(
PROGSUFFIX='.exe',
@@ -115,7 +121,7 @@ env1.PrependENVPath('PATHEXT', '.PY')
env1.Program('sub1/hello.c')
env2 = env1.Clone(CPPPATH=['sub2'])
env2.Program('sub2/hello.c')
-"""
+""",
)
# TODO in the above, we would normally want to run a python program
# using "our python" like this:
diff --git a/test/sconsign/script/Signatures.py b/test/sconsign/script/Signatures.py
index b5db3f9..ef8bac0 100644
--- a/test/sconsign/script/Signatures.py
+++ b/test/sconsign/script/Signatures.py
@@ -62,7 +62,9 @@ test.subdir('sub1', 'sub2')
fake_cc_py = test.workpath('fake_cc.py')
fake_link_py = test.workpath('fake_link.py')
-test.write(fake_cc_py, fr"""#!{_python_}
+test.write(
+ fake_cc_py,
+ fr"""#!{_python_}
import os
import re
import sys
@@ -93,10 +95,12 @@ with open(sys.argv[2], 'w') as outf, open(sys.argv[3], 'r') as ifp:
process(ifp, outf)
sys.exit(0)
-"""
+""",
)
-test.write(fake_link_py, fr"""#!{_python_}
+test.write(
+ fake_link_py,
+ fr"""#!{_python_}
import sys
with open(sys.argv[1], 'w') as outf, open(sys.argv[2], 'r') as ifp:
@@ -104,13 +108,15 @@ with open(sys.argv[1], 'w') as outf, open(sys.argv[2], 'r') as ifp:
outf.write(ifp.read())
sys.exit(0)
-"""
+""",
)
test.chmod(fake_cc_py, 0o755)
test.chmod(fake_link_py, 0o755)
-test.write('SConstruct', f"""
+test.write(
+ 'SConstruct',
+ f"""
SConsignFile(None)
Decider('timestamp-newer')
env1 = Environment(
@@ -126,7 +132,7 @@ env1.PrependENVPath('PATHEXT', '.PY')
env1.Program('sub1/hello.c')
env2 = env1.Clone(CPPPATH=['sub2'])
env2.Program('sub2/hello.c')
-"""
+""",
)
# TODO in the above, we would normally want to run a python program
# using "our python" like this:
diff --git a/test/sconsign/script/no-SConsignFile.py b/test/sconsign/script/no-SConsignFile.py
index f06a2d0..7a41c72 100644
--- a/test/sconsign/script/no-SConsignFile.py
+++ b/test/sconsign/script/no-SConsignFile.py
@@ -56,7 +56,9 @@ database_name = test.get_sconsignname()
fake_cc_py = test.workpath('fake_cc.py')
fake_link_py = test.workpath('fake_link.py')
-test.write(fake_cc_py, fr"""#!{_python_}
+test.write(
+ fake_cc_py,
+ fr"""#!{_python_}
import os
import re
import sys
@@ -87,10 +89,12 @@ with open(sys.argv[2], 'w') as outf, open(sys.argv[3], 'r') as ifp:
process(ifp, outf)
sys.exit(0)
-"""
+""",
)
-test.write(fake_link_py, fr"""#!{_python_}
+test.write(
+ fake_link_py,
+ fr"""#!{_python_}
import sys
with open(sys.argv[1], 'w') as outf, open(sys.argv[2], 'r') as ifp:
@@ -98,7 +102,7 @@ with open(sys.argv[1], 'w') as outf, open(sys.argv[2], 'r') as ifp:
outf.write(ifp.read())
sys.exit(0)
-"""
+""",
)
test.chmod(fake_cc_py, 0o755)
@@ -115,7 +119,9 @@ sub2_hello_obj = 'sub2/hello.obj'
sub2_inc1_h = 'sub2/inc1.h'
sub2_inc2_h = 'sub2/inc2.h'
-test.write(['SConstruct'], f"""
+test.write(
+ ['SConstruct'],
+ f"""
SConsignFile(None)
env1 = Environment(
PROGSUFFIX='.exe',
@@ -130,7 +136,7 @@ env1.PrependENVPath('PATHEXT', '.PY')
env1.Program('sub1/hello.c')
env2 = env1.Clone(CPPPATH=['sub2'])
env2.Program('sub2/hello.c')
-"""
+""",
)
# TODO in the above, we would normally want to run a python program
# using "our python" like this: