diff options
author | Gaurav Juvekar <gauravjuvekar@gmail.com> | 2017-03-26 10:29:59 (GMT) |
---|---|---|
committer | Gaurav Juvekar <gauravjuvekar@gmail.com> | 2017-03-26 10:29:59 (GMT) |
commit | 916e4fa90ee512fedeba05665fb357ffd208319c (patch) | |
tree | 0b9053aaf4ef8c02d4b585795925b4a087ee1071 /test | |
parent | fc30b315d34d164a47e35e8a8ac5333f0c395768 (diff) | |
download | SCons-916e4fa90ee512fedeba05665fb357ffd208319c.zip SCons-916e4fa90ee512fedeba05665fb357ffd208319c.tar.gz SCons-916e4fa90ee512fedeba05665fb357ffd208319c.tar.bz2 |
string-escape unicode characters while printing --tree
Fixes #2910
Diffstat (limited to 'test')
-rw-r--r-- | test/option--tree.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/option--tree.py b/test/option--tree.py index a50433c..a8c360e 100644 --- a/test/option--tree.py +++ b/test/option--tree.py @@ -51,6 +51,23 @@ 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 with the --tree option +test.write('SConstruct', +""" +env = Environment() +env.Tool("textfile") +env.Textfile("Foo", unichr(0xe7).encode('utf-8')) +""") + +test.run(arguments = '-Q --tree=all', + stdout = """Creating 'Foo.txt' ++-. + +-Foo.txt + | +-\\xc3\\xa7 + +-SConstruct +""", + status = 0) test.pass_test() # Local Variables: |