diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-08 22:54:19 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-08 22:54:19 (GMT) |
commit | 3dcb5acdb0151d1686762329ec07ae2ac4d1caae (patch) | |
tree | 1b9d0230afafafa0cff920c7f55c9ca98e433719 /Lib/test/test_codecs.py | |
parent | 1fbd36b51d1bf65bc110e51840bede646b58f2d5 (diff) | |
download | cpython-3dcb5acdb0151d1686762329ec07ae2ac4d1caae.zip cpython-3dcb5acdb0151d1686762329ec07ae2ac4d1caae.tar.gz cpython-3dcb5acdb0151d1686762329ec07ae2ac4d1caae.tar.bz2 |
Issue #8838, #8339: Remove codecs.charbuffer_encode() and "t#" parsing format
Remove last references to the "char buffer" of the buffer protocol from
Python3.
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r-- | Lib/test/test_codecs.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 598aaa2..7de1ed5 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -72,7 +72,6 @@ class ReadTest(unittest.TestCase, MixInCheckStateHandling): # check that there's nothing left in the buffers self.assertEqual(r.read(), "") self.assertEqual(r.bytebuffer, b"") - self.assertEqual(r.charbuffer, "") # do the check again, this time using a incremental decoder d = codecs.getincrementaldecoder(self.encoding)() @@ -628,18 +627,6 @@ class ReadBufferTest(unittest.TestCase): self.assertRaises(TypeError, codecs.readbuffer_encode) self.assertRaises(TypeError, codecs.readbuffer_encode, 42) -class CharBufferTest(unittest.TestCase): - - def test_string(self): - self.assertEqual(codecs.charbuffer_encode(b"spam"), (b"spam", 4)) - - def test_empty(self): - self.assertEqual(codecs.charbuffer_encode(b""), (b"", 0)) - - def test_bad_args(self): - self.assertRaises(TypeError, codecs.charbuffer_encode) - self.assertRaises(TypeError, codecs.charbuffer_encode, 42) - class UTF8SigTest(ReadTest): encoding = "utf-8-sig" @@ -1663,7 +1650,6 @@ def test_main(): UTF7Test, UTF16ExTest, ReadBufferTest, - CharBufferTest, RecodingTest, PunycodeTest, UnicodeInternalTest, |