From bae5cedb8d41edc20bea54b8bff0c7f835de8043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Thu, 3 May 2007 21:11:35 +0000 Subject: [PATCH] Temporary fix: Module names are still 8bit strings. This change allows test_support.run_unittest(__name__) to work again. However the proper fix would be module names that are real unicode strings. --- 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 29a38522e0a..d6aeb29d8e4 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): + if isinstance(cls, (str, str8)): if cls in sys.modules: suite.addTest(unittest.findTestCases(sys.modules[cls])) else: