diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-09 19:29:16 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-09 19:29:16 (GMT) |
commit | e7bd868429af3e3a1091e2cf83731530561579a1 (patch) | |
tree | 1437b8efe00db24b13fbb2edde9f6c8bbe83ca2e /Lib/unittest.py | |
parent | 0560843b8fe8d4dd9e830f7b3ae7984154914516 (diff) | |
download | cpython-e7bd868429af3e3a1091e2cf83731530561579a1.zip cpython-e7bd868429af3e3a1091e2cf83731530561579a1.tar.gz cpython-e7bd868429af3e3a1091e2cf83731530561579a1.tar.bz2 |
Buglet: fix unittest.main()
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r-- | Lib/unittest.py | 2 |
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) |