]> granicus.if.org Git - python/commitdiff
Fix test_str.py so that it tests the str8 class.
authorWalter Dörwald <walter@livinglogic.de>
Thu, 7 Jun 2007 13:52:37 +0000 (13:52 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 7 Jun 2007 13:52:37 +0000 (13:52 +0000)
Fix string_tests.py::MixinStrUnicodeTest.test_bug1001011():
Test str and str8.

Lib/test/string_tests.py
Lib/test/test_str.py

index 53a3ddb68c17c8f0a76f62b0928aa5d40f716e88..d5a9a29316851f7ef5797ee9c52330599ff7d75c 100644 (file)
@@ -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)
index be26b242f64228f62b76e1a55d0f3bb6aebc43cb..6fa377966f250b1c2246c8b0ba2de3f607f8085b 100644 (file)
@@ -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):