Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(154732)

Unified Diff: Lib/test/test_codecs.py

Issue 23001: Accept mutable bytes-like objects
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
--- a/Lib/test/test_codecs.py Wed Mar 18 21:36:23 2015 -0500
+++ b/Lib/test/test_codecs.py Thu Mar 19 13:16:44 2015 +0200
@@ -1086,6 +1086,7 @@ class UTF8SigTest(UTF8Test, unittest.Tes
class EscapeDecodeTest(unittest.TestCase):
def test_empty(self):
self.assertEqual(codecs.escape_decode(b""), (b"", 0))
+ self.assertEqual(codecs.escape_decode(bytearray()), (b"", 0))
def test_raw(self):
decode = codecs.escape_decode

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+