mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Unittest for Issue 21511 by Christie Wilson bobcatfish@gmail.com (merge from 3.4).
This commit is contained in:
commit
0ac8aa7ff3
1 changed files with 7 additions and 0 deletions
|
@ -137,6 +137,13 @@ zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz''')
|
|||
for p, e in self.STRINGS:
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue