diff options
author | anatoly techtonik <techtonik@gmail.com> | 2015-05-26 18:50:30 +0300 |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2015-05-26 18:50:30 +0300 |
commit | 41cc850fe817c2d9e3a9028e81dea6e259e99295 (patch) | |
tree | e4f58a26654a42baa7b51aa92041e39a2358b08c | |
parent | f65025d120e891b9e56e59799f05cf92cfb757b6 (diff) | |
download | scons-41cc850fe817c2d9e3a9028e81dea6e259e99295.tar.gz |
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 a50433c0..519ebe32 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: |