summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-04-16 00:25:08 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-04-16 00:25:08 (GMT)
commit62bdd33553c4df9e658855b5bfb32e9f1d4ec6a5 (patch)
tree44f57730990d219d817f01557fad7fa7a445e625 /test
parent2c7b4f7cd5a2277208902c3b59c98b8530fd8698 (diff)
parent1098541638a57e6672de8e29d9e02d713a4644a7 (diff)
downloadSCons-62bdd33553c4df9e658855b5bfb32e9f1d4ec6a5.zip
SCons-62bdd33553c4df9e658855b5bfb32e9f1d4ec6a5.tar.gz
SCons-62bdd33553c4df9e658855b5bfb32e9f1d4ec6a5.tar.bz2
merge from upstream
Diffstat (limited to 'test')
-rw-r--r--test/option--tree.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/option--tree.py b/test/option--tree.py
index a50433c..a9618d8 100644
--- a/test/option--tree.py
+++ b/test/option--tree.py
@@ -51,6 +51,30 @@ scons: warning: The --debug=tree option is deprecated; please use --tree=all ins
""",
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:
+ # Python 2
+ write = unichr(0xe7).encode('utf-8')
+except NameError:
+ # Python 3
+ # str is utf-8 by default
+ write = chr(0xe7)
+env.Textfile("Foo", write)
+""")
+
+test.run(arguments = '-Q --tree=all',
+ stdout = """Creating 'Foo.txt'
++-.
+ +-Foo.txt
+ | +-\\xc3\\xa7
+ +-SConstruct
+""",
+ status = 0)
test.pass_test()
# Local Variables: