summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-11-13 08:49:30 (GMT)
committerSteven Knight <knight@baldmt.com>2002-11-13 08:49:30 (GMT)
commit3cd1df2a2faa246a150f9a6e5a29368eab106a30 (patch)
tree6923adde0391471bd033183fa8f34ae38edcb4ed /test
parentc3f2f406542da875245f96d9505b5bedde0a5de0 (diff)
downloadSCons-3cd1df2a2faa246a150f9a6e5a29368eab106a30.zip
SCons-3cd1df2a2faa246a150f9a6e5a29368eab106a30.tar.gz
SCons-3cd1df2a2faa246a150f9a6e5a29368eab106a30.tar.bz2
Win32 portability.
Diffstat (limited to 'test')
-rw-r--r--test/ParseConfig.py8
-rw-r--r--test/special-filenames.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/ParseConfig.py b/test/ParseConfig.py
index 1cf52ed..eaf7802 100644
--- a/test/ParseConfig.py
+++ b/test/ParseConfig.py
@@ -39,8 +39,8 @@ print "-L/usr/fax -Lfoo -lxxx abc"
""")
test.write('SConstruct', """
-env = Environment()
-static_libs = ParseConfig(env, ["%s", "%s", "--libs --cflags"])
+env = Environment(CPPPATH = [], LIBPATH = [], LIBS = [], CCFLAGS = '')
+static_libs = ParseConfig(env, [r"%s", r"%s", "--libs --cflags"])
print env['CPPPATH']
print env['LIBPATH']
print env['LIBS']
@@ -49,8 +49,8 @@ print static_libs
""" % (sys.executable, test_config))
test.write('SConstruct2', """
-env = Environment()
-static_libs = ParseConfig(env, "%s %s --libs --cflags")
+env = Environment(CPPPATH = [], LIBPATH = [], LIBS = [], CCFLAGS = '')
+static_libs = ParseConfig(env, r"%s %s --libs --cflags")
print env['CPPPATH']
print env['LIBPATH']
print env['LIBS']
diff --git a/test/special-filenames.py b/test/special-filenames.py
index 88db6bb..3f05fe3 100644
--- a/test/special-filenames.py
+++ b/test/special-filenames.py
@@ -55,7 +55,7 @@ if os.name == 'nt':
test.write("cat.py", """\
import sys
-open(sys.argv[1], 'w').write(open(sys.argv[2], 'r').read())
+open(sys.argv[1], 'wb').write(open(sys.argv[2], 'rb').read())
""")
for fn in file_names: