diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-04 07:18:10 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-04 07:18:10 (GMT) |
commit | bf58bd6ddb1d6dd9aa80319886db744a802f4345 (patch) | |
tree | b97da1efa2b5d6a914227d621f2597efcc964995 /Lib/test/test_support.py | |
parent | c8c82333c69c09d596bcfbd55a02fbfcb8dd4ed3 (diff) | |
download | cpython-bf58bd6ddb1d6dd9aa80319886db744a802f4345.zip cpython-bf58bd6ddb1d6dd9aa80319886db744a802f4345.tar.gz cpython-bf58bd6ddb1d6dd9aa80319886db744a802f4345.tar.bz2 |
Use basestring instead of (str, str8) to test whether
cls is a module *name*.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index d6aeb29..57b1db3 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -534,7 +534,7 @@ def run_unittest(*classes): valid_types = (unittest.TestSuite, unittest.TestCase) suite = unittest.TestSuite() for cls in classes: - if isinstance(cls, (str, str8)): + if isinstance(cls, basestring): if cls in sys.modules: suite.addTest(unittest.findTestCases(sys.modules[cls])) else: |