diff options
| author | Guido van Rossum <guido@python.org> | 2015-04-11 17:44:01 -0400 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2015-04-11 17:44:01 -0400 |
| commit | e173c075026aea8a9d023997701a7461fb7e0272 (patch) | |
| tree | 51a922c0360572b684e2eb2476d2384cb0b0be55 | |
| parent | 770319d6bd57558a269d388120a4edeff857a3ad (diff) | |
| download | cpython-git-e173c075026aea8a9d023997701a7461fb7e0272.tar.gz | |
Unittest for Issue 21511 by Christie Wilson bobcatfish@gmail.com.
| -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 583fd456a4..92511fac90 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) |
