From: Walter Dörwald Date: Thu, 7 Jun 2007 13:52:37 +0000 (+0000) Subject: Fix test_str.py so that it tests the str8 class. X-Git-Tag: v3.0a1~817 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c271fe85c34dca1bbfcbb206f8d5ad4c70991b4;p=python Fix test_str.py so that it tests the str8 class. Fix string_tests.py::MixinStrUnicodeTest.test_bug1001011(): Test str and str8. --- diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 53a3ddb68c..d5a9a29316 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -1154,7 +1154,7 @@ class MixinStrUnicodeTest: s2 = "".join([s1]) self.assert_(s1 is s2) - elif t is str: + elif t is str8: s1 = subclass("abcd") s2 = "".join([s1]) self.assert_(s1 is not s2) diff --git a/Lib/test/test_str.py b/Lib/test/test_str.py index be26b242f6..6fa377966f 100644 --- a/Lib/test/test_str.py +++ b/Lib/test/test_str.py @@ -9,7 +9,7 @@ class StrTest( string_tests.MixinStrUnicodeTest, ): - type2test = str + type2test = str8 # We don't need to propagate to str def fixtype(self, obj):