mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
2 changed files with 2 additions and 2 deletions
|
@ -1154,7 +1154,7 @@ class MixinStrUnicodeTest:
|
||||||
s2 = "".join([s1])
|
s2 = "".join([s1])
|
||||||
self.assert_(s1 is s2)
|
self.assert_(s1 is s2)
|
||||||
|
|
||||||
elif t is str:
|
elif t is str8:
|
||||||
s1 = subclass("abcd")
|
s1 = subclass("abcd")
|
||||||
s2 = "".join([s1])
|
s2 = "".join([s1])
|
||||||
self.assert_(s1 is not s2)
|
self.assert_(s1 is not s2)
|
||||||
|
|
|
@ -9,7 +9,7 @@ class StrTest(
|
||||||
string_tests.MixinStrUnicodeTest,
|
string_tests.MixinStrUnicodeTest,
|
||||||
):
|
):
|
||||||
|
|
||||||
type2test = str
|
type2test = str8
|
||||||
|
|
||||||
# We don't need to propagate to str
|
# We don't need to propagate to str
|
||||||
def fixtype(self, obj):
|
def fixtype(self, obj):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue