mirror of
https://github.com/python/cpython
synced 2024-09-22 13:13:45 +00: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 subclass(t):
|
|||
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 a new issue