summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/option--tree.py15
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: