summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'testlib.py')
-rw-r--r--testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testlib.py b/testlib.py
index f229ba0..ba01788 100644
--- a/testlib.py
+++ b/testlib.py
@@ -177,7 +177,7 @@ def run_tests(tests, quiet, verbose, runner=None, capture=0):
print '-'*80
print "Executing", test
result = run_test(test, verbose, runner, capture)
- if type(result) is type(''):
+ if isinstance(result, str):
# an unexpected error occurred
skipped.append( (test, result))
else: