From bf58bd6ddb1d6dd9aa80319886db744a802f4345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Fri, 4 May 2007 07:18:10 +0000 Subject: [PATCH] Use basestring instead of (str, str8) to test whether cls is a module *name*. --- Lib/test/test_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index d6aeb29d8e4..57b1db3919d 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -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: