Kaydet (Commit) e7bd8684 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Buglet: fix unittest.main()

üst 0560843b
......@@ -813,7 +813,7 @@ Examples:
def __init__(self, module='__main__', defaultTest=None,
argv=None, testRunner=TextTestRunner,
testLoader=defaultTestLoader):
if isinstance(module, basestring):
if isinstance(module, str):
self.module = __import__(module)
for part in module.split('.')[1:]:
self.module = getattr(self.module, part)
......
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