diff options
author | Guido van Rossum <guido@python.org> | 2015-04-11 21:44:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2015-04-11 21:44:01 (GMT) |
commit | e173c075026aea8a9d023997701a7461fb7e0272 (patch) | |
tree | 51a922c0360572b684e2eb2476d2384cb0b0be55 /Lib/test/test_quopri.py | |
parent | 770319d6bd57558a269d388120a4edeff857a3ad (diff) | |
download | cpython-e173c075026aea8a9d023997701a7461fb7e0272.zip cpython-e173c075026aea8a9d023997701a7461fb7e0272.tar.gz cpython-e173c075026aea8a9d023997701a7461fb7e0272.tar.bz2 |
Unittest for Issue 21511 by Christie Wilson bobcatfish@gmail.com.
Diffstat (limited to 'Lib/test/test_quopri.py')
-rw-r--r-- | Lib/test/test_quopri.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_quopri.py b/Lib/test/test_quopri.py index 583fd45..92511fa 100644 --- a/Lib/test/test_quopri.py +++ b/Lib/test/test_quopri.py @@ -138,6 +138,13 @@ zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz''') self.assertEqual(quopri.decodestring(e), p) @withpythonimplementation + def test_decodestring_double_equals(self): + # Issue 21511 - Ensure that byte string is compared to byte string + # instead of int byte value + decoded_value, encoded_value = (b"123=four", b"123==four") + self.assertEqual(quopri.decodestring(encoded_value), decoded_value) + + @withpythonimplementation def test_idempotent_string(self): for p, e in self.STRINGS: self.assertEqual(quopri.decodestring(quopri.encodestring(e)), e) |