From cd88c2ae35ff11b6565dcb8c7b0a0c1985346f51 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Tue, 26 May 2015 18:50:30 +0300 Subject: Add test for UnicodeDecode failure --- test/option--tree.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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: -- cgit v0.12