diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-06-03 18:07:11 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-03 21:07:11 -0400 |
| commit | 0a66aa158a47564fa11ff7aa99ffd3d7d73890ed (patch) | |
| tree | de96c084705715d30418474c73f9127d5f61d51a /tests/httpwrappers | |
| parent | 07a9771b364a52ef7e4ee9d42116ce218e47d1b0 (diff) | |
Refs #27308, #27753 -- Removed obsolete cookie test mixing bytes with str.
Python 3's SimpleCookie treats all values as strings. Passing a bytes
object coerces to the repr value.
Diffstat (limited to 'tests/httpwrappers')
| -rw-r--r-- | tests/httpwrappers/tests.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index ab7c6ce3ff..a387ca1f74 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -688,15 +688,6 @@ class CookieTests(unittest.TestCase): c3 = parse_cookie(c.output()[12:]) self.assertEqual(c['test'].value, c3['test']) - def test_decode_2(self): - c = SimpleCookie() - c['test'] = b"\xf0" - c2 = SimpleCookie() - c2.load(c.output()[12:]) - self.assertEqual(c['test'].value, c2['test'].value) - c3 = parse_cookie(c.output()[12:]) - self.assertEqual(c['test'].value, c3['test']) - def test_nonstandard_keys(self): """ A single non-standard cookie name doesn't affect all cookies (#13007). |
