summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-04 07:18:10 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-04 07:18:10 (GMT)
commitbf58bd6ddb1d6dd9aa80319886db744a802f4345 (patch)
treeb97da1efa2b5d6a914227d621f2597efcc964995 /Lib/test/test_support.py
parentc8c82333c69c09d596bcfbd55a02fbfcb8dd4ed3 (diff)
downloadcpython-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.py2
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: