mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #19587: Merge test_bytes cleanup from 3.5
This commit is contained in:
commit
7909411964
3 changed files with 6 additions and 63 deletions
|
@ -1562,24 +1562,11 @@ class BytearrayPEP3137Test(unittest.TestCase,
|
|||
|
||||
|
||||
class FixedStringTest(test.string_tests.BaseTest):
|
||||
|
||||
def fixtype(self, obj):
|
||||
if isinstance(obj, str):
|
||||
return obj.encode("utf-8")
|
||||
return super().fixtype(obj)
|
||||
|
||||
# Currently the bytes containment testing uses a single integer
|
||||
# value. This may not be the final design, but until then the
|
||||
# bytes section with in a bytes containment not valid
|
||||
def test_contains(self):
|
||||
pass
|
||||
def test_expandtabs(self):
|
||||
pass
|
||||
def test_upper(self):
|
||||
pass
|
||||
def test_lower(self):
|
||||
pass
|
||||
|
||||
class ByteArrayAsStringTest(FixedStringTest, unittest.TestCase):
|
||||
type2test = bytearray
|
||||
contains_bytes = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue