From c7f936f285dcaa3d4aed99e9ae05489ff3992e61 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Thu, 2 Mar 2023 18:29:30 -0800 Subject: 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 --- test/textfile/textfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') -- cgit v1.2.1