From e7bd868429af3e3a1091e2cf83731530561579a1 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 9 Jan 2009 19:29:16 +0000 Subject: Buglet: fix unittest.main() --- Lib/unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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) -- cgit v0.12