summaryrefslogtreecommitdiff
path: root/test/Progress
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-04-06 16:15:21 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2017-04-06 16:15:21 -0700
commit79bce417e61dae959686967772e25d19617b0457 (patch)
tree384210ba248a68514836ea89da5906413e133f90 /test/Progress
parentfccecb3ab51b9a637708aea351e8071cf3c05578 (diff)
downloadscons-79bce417e61dae959686967772e25d19617b0457.tar.gz
py2/3 swap to bytes for comparison
Diffstat (limited to 'test/Progress')
-rw-r--r--test/Progress/spinner.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Progress/spinner.py b/test/Progress/spinner.py
index 85ca32f2..59c0a893 100644
--- a/test/Progress/spinner.py
+++ b/test/Progress/spinner.py
@@ -33,6 +33,7 @@ import os
import TestSCons
+
test = TestSCons.TestSCons(universal_newlines=None)
test.write('SConstruct', r"""
@@ -50,12 +51,12 @@ test.write('S2.in', "S2.in\n")
test.write('S3.in', "S3.in\n")
test.write('S4.in', "S4.in\n")
-expect = """\
+expect = bytearray("""\
\\\r|\rCopy("S1.out", "S1.in")
/\r-\rCopy("S2.out", "S2.in")
\\\r|\rCopy("S3.out", "S3.in")
/\r-\rCopy("S4.out", "S4.in")
-\\\r|\r"""
+\\\r|\r""",'utf-8')
if os.linesep != '\n':
expect = expect.replace('\n', os.linesep)