summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2016-11-25 17:58:55 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2016-11-25 17:58:55 (GMT)
commit01d3b114c7d82ca3dbeb912fe192986cc95b1723 (patch)
tree30cf6c089e0a46b555901ed8d288c14107b4409a /src/engine/SCons
parente43cc77f3988aa7b61f35fd62d0f1a5600198eb6 (diff)
parent40cb13a34b33464fa2acd3a1b12e792ca059e67d (diff)
downloadSCons-01d3b114c7d82ca3dbeb912fe192986cc95b1723.zip
SCons-01d3b114c7d82ca3dbeb912fe192986cc95b1723.tar.gz
SCons-01d3b114c7d82ca3dbeb912fe192986cc95b1723.tar.bz2
Merged in williamblevins/scons (pull request #366)
Fixed src/engine/SCons/ExecutorTests.py under Python3
Diffstat (limited to 'src/engine/SCons')
-rw-r--r--src/engine/SCons/ExecutorTests.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/engine/SCons/ExecutorTests.py b/src/engine/SCons/ExecutorTests.py
index 99c6226..dbfb7d1 100644
--- a/src/engine/SCons/ExecutorTests.py
+++ b/src/engine/SCons/ExecutorTests.py
@@ -53,7 +53,11 @@ class MyAction(object):
def genstring(self, target, source, env):
return ' '.join(['GENSTRING'] + list(map(str, self.actions)) + target + source)
def get_contents(self, target, source, env):
- return ' '.join(self.actions + target + source)
+ return b' '.join(
+ [SCons.Util.to_bytes(aa) for aa in self.actions] +
+ [SCons.Util.to_bytes(tt) for tt in target] +
+ [SCons.Util.to_bytes(ss) for ss in source]
+ )
def get_implicit_deps(self, target, source, env):
return []
@@ -381,14 +385,14 @@ class ExecutorTestCase(unittest.TestCase):
x = SCons.Executor.Executor(MyAction(), env, [], ['t'], ['s'])
c = x.get_contents()
- assert c == 'action1 action2 t s', c
+ assert c == b'action1 action2 t s', c
x = SCons.Executor.Executor(MyAction(actions=['grow']), env, [],
['t'], ['s'])
x.add_pre_action(MyAction(['pre']))
x.add_post_action(MyAction(['post']))
c = x.get_contents()
- assert c == 'pre t sgrow t spost t s', c
+ assert c == b'pre t sgrow t spost t s', c
def test_get_timestamp(self):
"""Test fetching the "timestamp" """