summaryrefslogtreecommitdiffstats
path: root/test/sconsign
diff options
context:
space:
mode:
authorPaweł Tomulik <ptomulik@meil.pw.edu.pl>2018-10-13 08:14:34 (GMT)
committerPaweł Tomulik <ptomulik@meil.pw.edu.pl>2018-10-25 19:57:33 (GMT)
commita011d2aa0e21d1dc6ab6b11251a671b7152319fa (patch)
treee275ec2bcfdc344b7781f7e6a31d205ac794d238 /test/sconsign
parent91d6859d22af2c5478e8213833673d95dcb212e2 (diff)
downloadSCons-a011d2aa0e21d1dc6ab6b11251a671b7152319fa.zip
SCons-a011d2aa0e21d1dc6ab6b11251a671b7152319fa.tar.gz
SCons-a011d2aa0e21d1dc6ab6b11251a671b7152319fa.tar.bz2
attempt fixing tests failing due to binary mode
Diffstat (limited to 'test/sconsign')
-rw-r--r--test/sconsign/script/SConsignFile.py10
-rw-r--r--test/sconsign/script/Signatures.py10
-rw-r--r--test/sconsign/script/no-SConsignFile.py10
3 files changed, 15 insertions, 15 deletions
diff --git a/test/sconsign/script/SConsignFile.py b/test/sconsign/script/SConsignFile.py
index e9eba66..5e56624 100644
--- a/test/sconsign/script/SConsignFile.py
+++ b/test/sconsign/script/SConsignFile.py
@@ -48,8 +48,8 @@ import re
import sys
path = sys.argv[1].split()
-output = open(sys.argv[2], 'wb')
-input = open(sys.argv[3], 'rb')
+output = open(sys.argv[2], 'w')
+input = open(sys.argv[3], 'r')
output.write('fake_cc.py: %%s\n' %% sys.argv)
@@ -57,7 +57,7 @@ def find_file(f):
for dir in path:
p = dir + os.sep + f
if os.path.exists(p):
- return open(p, 'rb')
+ return open(p, 'r')
return None
def process(infp, outfp):
@@ -77,8 +77,8 @@ sys.exit(0)
test.write(fake_link_py, r"""#!%(_python_)s
import sys
-output = open(sys.argv[1], 'wb')
-input = open(sys.argv[2], 'rb')
+output = open(sys.argv[1], 'w')
+input = open(sys.argv[2], 'r')
output.write('fake_link.py: %%s\n' %% sys.argv)
diff --git a/test/sconsign/script/Signatures.py b/test/sconsign/script/Signatures.py
index 0c6dfb5..7797bce 100644
--- a/test/sconsign/script/Signatures.py
+++ b/test/sconsign/script/Signatures.py
@@ -68,8 +68,8 @@ import re
import sys
path = sys.argv[1].split()
-output = open(sys.argv[2], 'wb')
-input = open(sys.argv[3], 'rb')
+output = open(sys.argv[2], 'w')
+input = open(sys.argv[3], 'r')
output.write('fake_cc.py: %%s\n' %% sys.argv)
@@ -77,7 +77,7 @@ def find_file(f):
for dir in path:
p = dir + os.sep + f
if os.path.exists(p):
- return open(p, 'rb')
+ return open(p, 'r')
return None
def process(infp, outfp):
@@ -97,8 +97,8 @@ sys.exit(0)
test.write(fake_link_py, r"""#!%(_python_)s
import sys
-output = open(sys.argv[1], 'wb')
-input = open(sys.argv[2], 'rb')
+output = open(sys.argv[1], 'w')
+input = open(sys.argv[2], 'r')
output.write('fake_link.py: %%s\n' %% sys.argv)
diff --git a/test/sconsign/script/no-SConsignFile.py b/test/sconsign/script/no-SConsignFile.py
index 6c892e1..d9ab51f 100644
--- a/test/sconsign/script/no-SConsignFile.py
+++ b/test/sconsign/script/no-SConsignFile.py
@@ -57,8 +57,8 @@ import re
import sys
path = sys.argv[1].split()
-output = open(sys.argv[2], 'wb')
-input = open(sys.argv[3], 'rb')
+output = open(sys.argv[2], 'w')
+input = open(sys.argv[3], 'r')
output.write('fake_cc.py: %%s\n' %% sys.argv)
@@ -66,7 +66,7 @@ def find_file(f):
for dir in path:
p = dir + os.sep + f
if os.path.exists(p):
- return open(p, 'rb')
+ return open(p, 'r')
return None
def process(infp, outfp):
@@ -86,8 +86,8 @@ sys.exit(0)
test.write(fake_link_py, r"""#!%(_python_)s
import sys
-output = open(sys.argv[1], 'wb')
-input = open(sys.argv[2], 'rb')
+output = open(sys.argv[1], 'w')
+input = open(sys.argv[2], 'r')
output.write('fake_link.py: %%s\n' %% sys.argv)