summaryrefslogtreecommitdiffstats
path: root/QMTest/TestCmd.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-09-18 06:49:31 (GMT)
committerGreg Noel <GregNoel@tigris.org>2009-09-18 06:49:31 (GMT)
commit8655ed6b5f85e66b3784c2aa485b3c01fe84c59b (patch)
tree801a4ad2fa2beb7aad6065cce00a2ed0fbb84086 /QMTest/TestCmd.py
parent956dc672657e9363f47caf55b8379229f9ef47c6 (diff)
downloadSCons-8655ed6b5f85e66b3784c2aa485b3c01fe84c59b.zip
SCons-8655ed6b5f85e66b3784c2aa485b3c01fe84c59b.tar.gz
SCons-8655ed6b5f85e66b3784c2aa485b3c01fe84c59b.tar.bz2
Minor fixes found while debugging
Diffstat (limited to 'QMTest/TestCmd.py')
-rw-r--r--QMTest/TestCmd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py
index 54a32bc..bce7ebb 100644
--- a/QMTest/TestCmd.py
+++ b/QMTest/TestCmd.py
@@ -989,13 +989,13 @@ class TestCmd:
interpreter = None,
arguments = None):
if program:
- if type(program) == type('') and not os.path.isabs(program):
+ if type(program) is type('') and not os.path.isabs(program):
program = os.path.join(self._cwd, program)
else:
program = self.program
if not interpreter:
interpreter = self.interpreter
- if not type(program) in [type([]), type(())]:
+ if type(program) not in [type([]), type(())]:
program = [program]
cmd = list(program)
if interpreter:
@@ -1003,7 +1003,7 @@ class TestCmd:
interpreter = [interpreter]
cmd = list(interpreter) + cmd
if arguments:
- if type(arguments) == type(''):
+ if type(arguments) is type(''):
arguments = string.split(arguments)
cmd.extend(arguments)
return cmd