summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-15 12:11:37 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-15 12:11:37 +0100
commit135b4141389138d95ad2c1a83a6a706f9758ceb6 (patch)
tree130bce997d5d6562db51f940f186f427b1779ee6 /testlib.py
parent2575a944af5839cf1bbafbdfe7f7f55478020014 (diff)
downloadlogilab-common-135b4141389138d95ad2c1a83a6a706f9758ceb6.tar.gz
2to3 has some more usable fixers
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: