Commit bf58bd6d authored by Walter Dörwald's avatar Walter Dörwald

Use basestring instead of (str, str8) to test whether

cls is a module *name*.
parent c8c82333
......@@ -534,7 +534,7 @@ def run_unittest(*classes):
valid_types = (unittest.TestSuite, unittest.TestCase)
suite = unittest.TestSuite()
for cls in classes:
if isinstance(cls, (str, str8)):
if isinstance(cls, basestring):
if cls in sys.modules:
suite.addTest(unittest.findTestCases(sys.modules[cls]))
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment