mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
Fix test_str.py so that it tests the str8 class.
Fix string_tests.py::MixinStrUnicodeTest.test_bug1001011(): Test str and str8.
This commit is contained in:
parent
756f139b97
commit
4c271fe85c
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user