diff options
author | Steven Knight <knight@baldmt.com> | 2001-10-17 16:42:21 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-10-17 16:42:21 (GMT) |
commit | 772ede31d7a5aed0c72943be9230313de687e0be (patch) | |
tree | f017114c2e9f7c7b8530f6216401a07b398d4b5f /test/ENV.py | |
parent | 3b884c9421bae33e2c7a204aacc5fdc2d9394423 (diff) | |
download | SCons-772ede31d7a5aed0c72943be9230313de687e0be.zip SCons-772ede31d7a5aed0c72943be9230313de687e0be.tar.gz SCons-772ede31d7a5aed0c72943be9230313de687e0be.tar.bz2 |
Portability fixes for tests on Windows Nt.
Diffstat (limited to 'test/ENV.py')
-rw-r--r-- | test/ENV.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ENV.py b/test/ENV.py index db51327..221e7f9 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() |