summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-01-09 19:29:16 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-01-09 19:29:16 (GMT)
commite7bd868429af3e3a1091e2cf83731530561579a1 (patch)
tree1437b8efe00db24b13fbb2edde9f6c8bbe83ca2e
parent0560843b8fe8d4dd9e830f7b3ae7984154914516 (diff)
downloadcpython-e7bd868429af3e3a1091e2cf83731530561579a1.zip
cpython-e7bd868429af3e3a1091e2cf83731530561579a1.tar.gz
cpython-e7bd868429af3e3a1091e2cf83731530561579a1.tar.bz2
Buglet: fix unittest.main()
-rw-r--r--Lib/unittest.py2
1 files changed, 1 insertions, 1 deletions
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)