commit | e7bd868429af3e3a1091e2cf83731530561579a1 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Fri Jan 09 19:29:16 2009 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Fri Jan 09 19:29:16 2009 +0000 |
tree | 1437b8efe00db24b13fbb2edde9f6c8bbe83ca2e | |
parent | 0560843b8fe8d4dd9e830f7b3ae7984154914516 [diff] |
Buglet: fix unittest.main()
diff --git a/Lib/unittest.py b/Lib/unittest.py index 1800828..fec41ca 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py
@@ -813,7 +813,7 @@ 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)