summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-05-28 20:26:30 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-05-28 20:26:30 (GMT)
commitac95931bb40d1b2f53fb017a1fc81e8fe71b111d (patch)
tree47904517991b171717473dc334e151c4f8c9a75a
parent948f492fc307bc974885388ecfdde126143ca6c0 (diff)
downloadSCons-ac95931bb40d1b2f53fb017a1fc81e8fe71b111d.zip
SCons-ac95931bb40d1b2f53fb017a1fc81e8fe71b111d.tar.gz
SCons-ac95931bb40d1b2f53fb017a1fc81e8fe71b111d.tar.bz2
PEP8 fixes
-rw-r--r--test/option--tree.py28
1 files changed, 15 insertions, 13 deletions
diff --git a/test/option--tree.py b/test/option--tree.py
index 2918c85..0bf2c06 100644
--- a/test/option--tree.py
+++ b/test/option--tree.py
@@ -31,31 +31,31 @@ test = TestSCons.TestSCons()
test.write('SConstruct', "")
-test.run(arguments = '-Q --tree=prune',
- stdout = """scons: `.' is up to date.
+test.run(arguments='-Q --tree=prune',
+ stdout="""scons: `.' is up to date.
+-.
+-SConstruct
""")
-test.run(arguments = '-Q --tree=foofoo',
- stderr = """usage: scons [OPTION] [TARGET] ...
+test.run(arguments='-Q --tree=foofoo',
+ stderr="""usage: scons [OPTION] [TARGET] ...
SCons Error: `foofoo' is not a valid --tree option type, try:
all, derived, prune, status
""",
- status = 2)
+ status=2)
-test.run(arguments = '--debug=tree',
- stderr = """
+test.run(arguments='--debug=tree',
+ stderr="""
scons: warning: The --debug=tree option is deprecated; please use --tree=all instead.
.*
""",
- status = 0, match=TestSCons.match_re_dotall)
+ status=0, match=TestSCons.match_re_dotall)
# Test that unicode characters can be printed (escaped) with the --tree option
test.write('SConstruct',
-"""
+ """
env = Environment()
env.Tool("textfile")
try:
@@ -73,14 +73,16 @@ if sys.version_info.major < 3:
else:
py23_char = chr(0xe7)
-test.run(arguments = '-Q --tree=all',
- stdout = """Creating 'Foo.txt'
+expected = """Creating 'Foo.txt'
+-.
+-Foo.txt
| +-""" + py23_char + """
+-SConstruct
-""",
- status = 0)
+"""
+
+test.run(arguments='-Q --tree=all',
+ stdout=expected,
+ status=0)
test.pass_test()
# Local Variables: