summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2023-03-02 18:29:30 -0800
committerWilliam Deegan <bill@baddogconsulting.com>2023-03-02 18:29:30 -0800
commitc7f936f285dcaa3d4aed99e9ae05489ff3992e61 (patch)
tree2f3d4cb9e38420aa6c3103b7e9bb3d4b04215e1d
parent1c83ac3958a6779a638fbef98493b178ad264bbd (diff)
downloadscons-git-c7f936f285dcaa3d4aed99e9ae05489ff3992e61.tar.gz
fix textfile test failing (only on windows) needed to switch generated file comparison from r (text) to rb (read binary) since we now include unicode, and test logic assumes r = ascii
-rw-r--r--test/textfile/textfile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/textfile/textfile.py b/test/textfile/textfile.py
index f614dfc94..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')