diff options
author | anatoly techtonik <techtonik@gmail.com> | 2015-05-26 15:50:30 (GMT) |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2015-05-26 15:50:30 (GMT) |
commit | cd88c2ae35ff11b6565dcb8c7b0a0c1985346f51 (patch) | |
tree | e4f58a26654a42baa7b51aa92041e39a2358b08c | |
parent | 6a63deeace54613c91004535bc3d593bb161430e (diff) | |
download | SCons-cd88c2ae35ff11b6565dcb8c7b0a0c1985346f51.zip SCons-cd88c2ae35ff11b6565dcb8c7b0a0c1985346f51.tar.gz SCons-cd88c2ae35ff11b6565dcb8c7b0a0c1985346f51.tar.bz2 |
Add test for UnicodeDecode failure
-rw-r--r-- | test/option--tree.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/option--tree.py b/test/option--tree.py index a50433c..519ebe3 100644 --- a/test/option--tree.py +++ b/test/option--tree.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- # # __COPYRIGHT__ # @@ -51,6 +52,20 @@ scons: warning: The --debug=tree option is deprecated; please use --tree=all ins """, status = 0, match=TestSCons.match_re_dotall) + +# Check that printing nodes won't fail with +# UnicodeDecodeError: 'ascii' codec ... ordinal not in range(128) +# https://bitbucket.org/scons/scons/pull-request/235 + +test.write('SConstruct', """\ +# -*- coding: utf-8 -*- + +Entry('русский юникод') +""") + +test.run(arguments = '-Q --tree=all') + + test.pass_test() # Local Variables: |