summaryrefslogtreecommitdiff
path: root/test/ENV.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-10-17 16:42:21 +0000
committerSteven Knight <knight@baldmt.com>2001-10-17 16:42:21 +0000
commit772ede31d7a5aed0c72943be9230313de687e0be (patch)
treef017114c2e9f7c7b8530f6216401a07b398d4b5f /test/ENV.py
parent3b884c9421bae33e2c7a204aacc5fdc2d9394423 (diff)
downloadscons-772ede31d7a5aed0c72943be9230313de687e0be.tar.gz
Portability fixes for tests on Windows Nt.
Diffstat (limited to 'test/ENV.py')
-rw-r--r--test/ENV.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ENV.py b/test/ENV.py
index db513273..221e7f96 100644
--- a/test/ENV.py
+++ b/test/ENV.py
@@ -50,8 +50,8 @@ bin2.Bld(target = 'bin2.out', source = 'input')
test.write(bin1_build_py,
"""#!/usr/bin/env python
import sys
-contents = open(sys.argv[2], 'r').read()
-file = open(sys.argv[1], 'w')
+contents = open(sys.argv[2], 'rb').read()
+file = open(sys.argv[1], 'wb')
file.write("bin1/build.py\\n")
file.write(contents)
file.close()
@@ -61,8 +61,8 @@ os.chmod(bin1_build_py, 0755)
test.write(bin2_build_py,
"""#!/usr/bin/env python
import sys
-contents = open(sys.argv[2], 'r').read()
-file = open(sys.argv[1], 'w')
+contents = open(sys.argv[2], 'rb').read()
+file = open(sys.argv[1], 'wb')
file.write("bin2/build.py\\n")
file.write(contents)
file.close()