summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Tipei <paul.bogdan.tipei@intel.com>2020-02-19 15:14:54 (GMT)
committerMats Wichmann <mats@linux.com>2020-03-24 16:08:35 (GMT)
commit89d03e37128aa839ed72ec72739b2ed431b7f4da (patch)
treed7a0e316225dc6aa1c2545a43b3ef9be9a7db49d
parent58b335b85db270c7bb80858aa01abf4b03d8bd3d (diff)
downloadSCons-89d03e37128aa839ed72ec72739b2ed431b7f4da.zip
SCons-89d03e37128aa839ed72ec72739b2ed431b7f4da.tar.gz
SCons-89d03e37128aa839ed72ec72739b2ed431b7f4da.tar.bz2
more cleanup
-rw-r--r--test/option--tree.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/test/option--tree.py b/test/option--tree.py
index d44b602..0beec7f 100644
--- a/test/option--tree.py
+++ b/test/option--tree.py
@@ -82,20 +82,13 @@ test.write('SConstruct',
"""
env = Environment()
env.Tool("textfile")
-try:
- # Python 2
- write = unichr(0xe7).encode('utf-8')
-except NameError:
- # Python 3
- # str is utf-8 by default
- write = chr(0xe7)
+# Python 3
+# str is utf-8 by default
+write = chr(0xe7)
env.Textfile("LineDraw", write)
""")
-if sys.version_info.major < 3:
- py23_char = unichr(0xe7).encode('utf-8')
-else:
- py23_char = chr(0xe7)
+py23_char = chr(0xe7)
expected = """Creating 'LineDraw.txt'
└─┬.