summaryrefslogtreecommitdiff
path: root/test/option--tree.py
diff options
context:
space:
mode:
authorGaurav Juvekar <gauravjuvekar@gmail.com>2017-05-10 00:44:08 +0530
committerGaurav Juvekar <gauravjuvekar@gmail.com>2017-05-10 00:44:08 +0530
commit7cf0b4f13d3cdd7d2d2c575f751841459f59354a (patch)
tree70493e66c180a2ddd20a224ab71102e1e04dc874 /test/option--tree.py
parent1185ea908627a78280d7091e5753f289bf5331f4 (diff)
downloadscons-7cf0b4f13d3cdd7d2d2c575f751841459f59354a.tar.gz
Directly print unicode in --tree
Diffstat (limited to 'test/option--tree.py')
-rw-r--r--test/option--tree.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/option--tree.py b/test/option--tree.py
index a9618d87..2918c856 100644
--- a/test/option--tree.py
+++ b/test/option--tree.py
@@ -24,6 +24,7 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import sys
import TestSCons
test = TestSCons.TestSCons()
@@ -67,11 +68,16 @@ except NameError:
env.Textfile("Foo", write)
""")
+if sys.version_info.major < 3:
+ py23_char = unichr(0xe7).encode('utf-8')
+else:
+ py23_char = chr(0xe7)
+
test.run(arguments = '-Q --tree=all',
stdout = """Creating 'Foo.txt'
+-.
+-Foo.txt
- | +-\\xc3\\xa7
+ | +-""" + py23_char + """
+-SConstruct
""",
status = 0)