Kaydet (Commit) bae5cedb authored tarafından Walter Dörwald's avatar Walter Dörwald

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.
üst aa97f049
......@@ -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:
......
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