Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 1 addition & 77 deletions Lib/test/test_codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,34 +546,6 @@ def test_issue8941(self):
self.assertEqual('\U00010000' * 1024,
codecs.utf_32_decode(encoded_be)[0])

def test_bug1098990_a(self):
return super().test_bug1098990_a()

def test_bug1098990_b(self):
return super().test_bug1098990_b()

def test_bug1175396(self):
return super().test_bug1175396()

def test_incremental_surrogatepass(self):
return super().test_incremental_surrogatepass()

def test_mixed_readline_and_read(self):
return super().test_mixed_readline_and_read()

def test_readline(self):
return super().test_readline()

def test_readlinequeue(self):
return super().test_readlinequeue()









class UTF32LETest(ReadTest, unittest.TestCase):
encoding = "utf-32-le"
Expand Down Expand Up @@ -621,13 +593,6 @@ def test_issue8941(self):
codecs.utf_32_le_decode(encoded)[0])









class UTF32BETest(ReadTest, unittest.TestCase):
encoding = "utf-32-be"
ill_formed_sequence = b"\x00\x00\xdc\x80"
Expand Down Expand Up @@ -674,13 +639,6 @@ def test_issue8941(self):
codecs.utf_32_be_decode(encoded)[0])









class UTF16Test(ReadTest, unittest.TestCase):
encoding = "utf-16"
if sys.byteorder == 'little':
Expand Down Expand Up @@ -779,10 +737,6 @@ def test_invalid_modes(self):
self.assertIn("can't have text and binary mode at once",
str(cm.exception))

def test_incremental_surrogatepass(self):
return super().test_incremental_surrogatepass()



class UTF16LETest(ReadTest, unittest.TestCase):
encoding = "utf-16-le"
Expand Down Expand Up @@ -828,10 +782,6 @@ def test_nonbmp(self):
self.assertEqual(b'\x00\xd8\x03\xde'.decode(self.encoding),
"\U00010203")

def test_incremental_surrogatepass(self):
return super().test_incremental_surrogatepass()


class UTF16BETest(ReadTest, unittest.TestCase):
encoding = "utf-16-be"
ill_formed_sequence = b"\xdc\x80"
Expand Down Expand Up @@ -876,10 +826,6 @@ def test_nonbmp(self):
self.assertEqual(b'\xd8\x00\xde\x03'.decode(self.encoding),
"\U00010203")

def test_incremental_surrogatepass(self):
return super().test_incremental_surrogatepass()


class UTF8Test(ReadTest, unittest.TestCase):
encoding = "utf-8"
ill_formed_sequence = b"\xed\xb2\x80"
Expand Down Expand Up @@ -1107,15 +1053,6 @@ def test_lone_surrogates(self):
with self.subTest(raw=raw):
self.assertEqual(raw.decode('utf-7', 'replace'), expected)

def test_readline(self):
return super().test_readline()

def test_incremental_surrogatepass(self):
return super().test_incremental_surrogatepass()





class UTF16ExTest(unittest.TestCase):

Expand Down Expand Up @@ -2843,11 +2780,6 @@ def test_partial(self):
def test_incremental_surrogatepass(self):
return super().test_incremental_surrogatepass()

def test_readline(self):
return super().test_readline()



class RawUnicodeEscapeTest(ReadTest, unittest.TestCase):
encoding = "raw-unicode-escape"

Expand Down Expand Up @@ -2930,14 +2862,6 @@ def test_partial(self):
]
)

def test_incremental_surrogatepass(self):
return super().test_incremental_surrogatepass()

def test_readline(self):
return super().test_readline()




class EscapeEncodeTest(unittest.TestCase):

Expand Down Expand Up @@ -3548,7 +3472,7 @@ def test_cp20106(self):
(b'(\xbf)', 'surrogatepass', None),
))

@unittest.expectedFailure # TODO: RUSTPYTHON # TODO: RUSTPYTHON
@unittest.expectedFailure # TODO: RUSTPYTHON; # TODO: RUSTPYTHON
def test_cp_utf7(self):
cp = 65000
self.check_encode(cp, (
Expand Down
Loading