summaryrefslogtreecommitdiff
path: root/test/textfile/textfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/textfile/textfile.py')
-rw-r--r--test/textfile/textfile.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/textfile/textfile.py b/test/textfile/textfile.py
index a2d005cfb..d7d19e5e2 100644
--- a/test/textfile/textfile.py
+++ b/test/textfile/textfile.py
@@ -34,7 +34,8 @@ test = TestSCons.TestSCons()
# foo1a = test.workpath('foo1a.txt')
# foo2a = test.workpath('foo2a.txt')
-match_mode = 'r'
+# Must be read binary as now we're including unicode characters in our textparts
+match_mode = 'rb'
test.file_fixture('fixture/SConstruct', 'SConstruct')
@@ -44,7 +45,8 @@ linesep = '\n'
textparts = ['lalala', '42',
'Goethe', 'Schiller',
- 'tanteratei']
+ 'tanteratei',
+ '×'] # <-- this is unicode /xd7 symbol
foo1Text = linesep.join(textparts)
foo2Text = '|*'.join(textparts)
foo1aText = foo1Text + linesep