summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-03 21:11:35 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-03 21:11:35 (GMT)
commitbae5cedb8d41edc20bea54b8bff0c7f835de8043 (patch)
tree33711ed789de57f5443a157c7c30045bd3c59284
parentaa97f0496412ed834aada921e29588ed16d68e40 (diff)
downloadcpython-bae5cedb8d41edc20bea54b8bff0c7f835de8043.zip
cpython-bae5cedb8d41edc20bea54b8bff0c7f835de8043.tar.gz
cpython-bae5cedb8d41edc20bea54b8bff0c7f835de8043.tar.bz2
Temporary fix: Module names are still 8bit strings. This
change allows test_support.run_unittest(__name__) to work again. However the proper fix would be module names that are real unicode strings.
-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 29a3852..d6aeb29 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):
+ if isinstance(cls, (str, str8)):
if cls in sys.modules:
suite.addTest(unittest.findTestCases(sys.modules[cls]))
else: