summaryrefslogtreecommitdiff
path: root/test/SConsignFile
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2016-01-30 22:39:17 +0000
committerThomas Tanner <trtanner@btinternet.com>2016-01-30 22:39:17 +0000
commit92fd45b8c36d14e9a4edb2a4b5a78882167e7525 (patch)
tree912fb4db4a3e452f811ab3a922a05d76bf4dba10 /test/SConsignFile
parentcefa78744e92f319112c1a5fc26f34727e9bbc5c (diff)
downloadscons-92fd45b8c36d14e9a4edb2a4b5a78882167e7525.tar.gz
Fix for backslash being treated as an escape character
On my windows system, my python is in c:\apps\32\python. Theres a lot of places where that \32 gets turned into an ascii character and the unit tests don't run.
Diffstat (limited to 'test/SConsignFile')
-rw-r--r--test/SConsignFile/default.py2
-rw-r--r--test/SConsignFile/explicit-file.py2
-rw-r--r--test/SConsignFile/use-dbhash.py2
-rw-r--r--test/SConsignFile/use-dumbdbm.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/SConsignFile/default.py b/test/SConsignFile/default.py
index f38aec8d..4d56a5ee 100644
--- a/test/SConsignFile/default.py
+++ b/test/SConsignFile/default.py
@@ -49,7 +49,7 @@ sys.exit(0)
#
test.write('SConstruct', """
SConsignFile()
-B = Builder(action = '%(_python_)s build.py $TARGETS $SOURCES')
+B = Builder(action = r'%(_python_)s build.py $TARGETS $SOURCES')
env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'f1.out', source = 'f1.in')
env.B(target = 'f2.out', source = 'f2.in')
diff --git a/test/SConsignFile/explicit-file.py b/test/SConsignFile/explicit-file.py
index 33963c27..90c22417 100644
--- a/test/SConsignFile/explicit-file.py
+++ b/test/SConsignFile/explicit-file.py
@@ -49,7 +49,7 @@ file.close()
test.write('SConstruct', """
e = Environment(XXX = 'scons')
e.SConsignFile('my_${XXX}ign')
-B = Builder(action = '%(_python_)s build.py $TARGETS $SOURCES')
+B = Builder(action = r'%(_python_)s build.py $TARGETS $SOURCES')
env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'f5.out', source = 'f5.in')
env.B(target = 'f6.out', source = 'f6.in')
diff --git a/test/SConsignFile/use-dbhash.py b/test/SConsignFile/use-dbhash.py
index 45e3e36f..bf9868b6 100644
--- a/test/SConsignFile/use-dbhash.py
+++ b/test/SConsignFile/use-dbhash.py
@@ -55,7 +55,7 @@ test.write('SConstruct', """
import sys
import dbhash
SConsignFile('.sconsign', dbhash)
-B = Builder(action = '%(_python_)s build.py $TARGETS $SOURCES')
+B = Builder(action = r'%(_python_)s build.py $TARGETS $SOURCES')
env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'f1.out', source = 'f1.in')
env.B(target = 'f2.out', source = 'f2.in')
diff --git a/test/SConsignFile/use-dumbdbm.py b/test/SConsignFile/use-dumbdbm.py
index 9d48fe5d..434435ab 100644
--- a/test/SConsignFile/use-dumbdbm.py
+++ b/test/SConsignFile/use-dumbdbm.py
@@ -55,7 +55,7 @@ test.write('SConstruct', """
import sys
import dumbdbm
SConsignFile('.sconsign', dumbdbm)
-B = Builder(action = '%(_python_)s build.py $TARGETS $SOURCES')
+B = Builder(action = r'%(_python_)s build.py $TARGETS $SOURCES')
env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'f1.out', source = 'f1.in')
env.B(target = 'f2.out', source = 'f2.in')