Minor fixes found while debugging
authorgregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 18 Sep 2009 06:49:31 +0000 (06:49 +0000)
committergregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 18 Sep 2009 06:49:31 +0000 (06:49 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4365 fdb21ef1-2011-0410-befe-b5e4ea1792b1

QMTest/TestCmd.py

index 54a32bc38e420de2c9607624f52cd248eca7bade..bce7ebba0d44dcc839fdb15ae228fb9b269b72cd 100644 (file)
@@ -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