Bug 795772 - More mach options to control xpcshell test execution; r=ted

DONTBUILD (NPOTB)
This commit is contained in:
Gregory Szorc
2012-10-31 10:29:26 -07:00
parent 14e5f56a48
commit 04c0eec0fd
2 changed files with 28 additions and 9 deletions

View File

@@ -482,7 +482,7 @@ class XPCShellTests(object):
if name is None:
name = "xpcshell"
else:
assert isinstance(name, str)
assert isinstance(name, basestring)
if filename is not None:
fh = open(filename, 'wb')
@@ -637,7 +637,7 @@ class XPCShellTests(object):
testdirs = []
if xunitFilename is not None or xunitName is not None:
if not isinstance(testsRootDir, str):
if not isinstance(testsRootDir, basestring):
raise Exception("testsRootDir must be a str when outputting xUnit.")
if not os.path.isabs(testsRootDir):