summaryrefslogtreecommitdiffstats
path: root/test/errors.py
diff options
context:
space:
mode:
authorAnthony Roach <aroach@electriceyeball.com>2001-09-01 16:03:31 (GMT)
committerAnthony Roach <aroach@electriceyeball.com>2001-09-01 16:03:31 (GMT)
commitdbe5a03db469ea8ba63feb94e62edce44d058c00 (patch)
tree38b849efbcf6ed7991215b1c15e504136671f652 /test/errors.py
parent55e686655cd6d1c19dbc6380101af5c0216c5275 (diff)
downloadSCons-dbe5a03db469ea8ba63feb94e62edce44d058c00.zip
SCons-dbe5a03db469ea8ba63feb94e62edce44d058c00.tar.gz
SCons-dbe5a03db469ea8ba63feb94e62edce44d058c00.tar.bz2
Make the build portable to Windows NT.
Diffstat (limited to 'test/errors.py')
-rw-r--r--test/errors.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/errors.py b/test/errors.py
index d3b7e04..d4b8d65 100644
--- a/test/errors.py
+++ b/test/errors.py
@@ -2,11 +2,11 @@
__revision__ = "test/t0003.py __REVISION__ __DATE__ __DEVELOPER__"
-from TestCmd import TestCmd
+import TestCmd
-test = TestCmd(program = 'scons.py',
- workdir = '',
- interpreter = 'python')
+test = TestCmd.TestCmd(program = 'scons.py',
+ workdir = '',
+ interpreter = 'python')
test.write('SConstruct1', """
a ! int(2.0)
@@ -34,8 +34,13 @@ File "SConstruct2", line 2, in ?
import os
+import string
sconspath = os.path.join(os.getcwd(), 'scons.py')
+# Since we're using regular expression matches below, escape any
+# backslashes that ended up in the path name. (Hello, Windows!)
+sconspath = string.replace(sconspath, '\\', '\\\\')
+
test.write('SConstruct3', """
raise InternalError, 'error inside'
""")