summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-09-20 20:07:30 (GMT)
committerWilliam Blevins <wblevins001@gmail.com>2016-09-20 20:07:30 (GMT)
commit0e2a4161264e7bac8368b8132b368796c880e30e (patch)
tree03ded12777f86fbdae061bdc4199cabe766db2d6 /test
parent226c34a47471c5c27bc9a0c262edd62d713acc81 (diff)
downloadSCons-0e2a4161264e7bac8368b8132b368796c880e30e.zip
SCons-0e2a4161264e7bac8368b8132b368796c880e30e.tar.gz
SCons-0e2a4161264e7bac8368b8132b368796c880e30e.tar.bz2
Fixing QMTest str and bytes issues.
Diffstat (limited to 'test')
-rw-r--r--test/AR/AR.py4
-rw-r--r--test/AR/ARCOM.py2
-rw-r--r--test/AR/ARCOMSTR.py2
-rw-r--r--test/AR/ARFLAGS.py4
4 files changed, 6 insertions, 6 deletions
diff --git a/test/AR/AR.py b/test/AR/AR.py
index 8fb8073..573f2d9 100644
--- a/test/AR/AR.py
+++ b/test/AR/AR.py
@@ -36,7 +36,7 @@ test = TestSCons.TestSCons()
test.write("wrapper.py",
"""import os
import sys
-open('%s', 'wb').write("wrapper.py\\n")
+open('%s', 'wb').write(b"wrapper.py\\n")
os.system(" ".join(sys.argv[1:]))
""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
@@ -100,7 +100,7 @@ test.run(arguments = 'b' + _exe,
stderr=TestSCons.noisy_ar,
match=TestSCons.match_re_dotall)
-test.fail_test(test.read('wrapper.out') != "wrapper.py\n")
+test.fail_test(test.read('wrapper.out') != b"wrapper.py\n")
test.pass_test()
diff --git a/test/AR/ARCOM.py b/test/AR/ARCOM.py
index f26ced6..bf2830e 100644
--- a/test/AR/ARCOM.py
+++ b/test/AR/ARCOM.py
@@ -41,7 +41,7 @@ import sys
outfile = open(sys.argv[1], 'wb')
for f in sys.argv[2:]:
infile = open(f, 'rb')
- for l in [l for l in infile.readlines() if l != '/*ar*/\\n']:
+ for l in [l for l in infile.readlines() if l != b'/*ar*/\\n']:
outfile.write(l)
sys.exit(0)
""")
diff --git a/test/AR/ARCOMSTR.py b/test/AR/ARCOMSTR.py
index 4c0bb85..1b1a9fb 100644
--- a/test/AR/ARCOMSTR.py
+++ b/test/AR/ARCOMSTR.py
@@ -42,7 +42,7 @@ import sys
outfile = open(sys.argv[1], 'wb')
for f in sys.argv[2:]:
infile = open(f, 'rb')
- for l in [l for l in infile.readlines() if l != '/*ar*/\\n']:
+ for l in [l for l in infile.readlines() if l != b'/*ar*/\\n']:
outfile.write(l)
sys.exit(0)
""")
diff --git a/test/AR/ARFLAGS.py b/test/AR/ARFLAGS.py
index be4e8bd..fad9c19 100644
--- a/test/AR/ARFLAGS.py
+++ b/test/AR/ARFLAGS.py
@@ -36,7 +36,7 @@ test = TestSCons.TestSCons()
test.write("wrapper.py",
"""import os
import sys
-open('%s', 'wb').write("wrapper.py\\n")
+open('%s', 'wb').write(b"wrapper.py\\n")
os.system(" ".join(sys.argv[1:]))
""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
@@ -99,7 +99,7 @@ test.run(arguments = 'b' + _exe,
stderr=TestSCons.noisy_ar,
match=TestSCons.match_re_dotall)
-test.fail_test(test.read('wrapper.out') != "wrapper.py\n")
+test.fail_test(test.read('wrapper.out') != b"wrapper.py\n")
test.pass_test()