diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-02-24 13:50:59 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-02-24 13:50:59 (GMT) |
commit | b118870490dd62e0706e8e610e99115c20e02bff (patch) | |
tree | 742339cda358adf037b61d37bb121ff21bafa2ca /Lib/test | |
parent | d10aa2e30d795686b25a3217be069c77cbd23944 (diff) | |
parent | 102d813b5553c8f0b1d0653bb9f9b7a3ac9a56c8 (diff) | |
download | cpython-b118870490dd62e0706e8e610e99115c20e02bff.zip cpython-b118870490dd62e0706e8e610e99115c20e02bff.tar.gz cpython-b118870490dd62e0706e8e610e99115c20e02bff.tar.bz2 |
Issue #26302: merge from 3.5
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_http_cookies.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_http_cookies.py b/Lib/test/test_http_cookies.py index d3e06a4..2432e0b 100644 --- a/Lib/test/test_http_cookies.py +++ b/Lib/test/test_http_cookies.py @@ -210,6 +210,12 @@ class CookieTests(unittest.TestCase): C1 = pickle.loads(pickle.dumps(C, protocol=proto)) self.assertEqual(C1.output(), expected_output) + def test_illegal_chars(self): + rawdata = "a=b; c,d=e" + C = cookies.SimpleCookie() + with self.assertRaises(cookies.CookieError): + C.load(rawdata) + class MorselTests(unittest.TestCase): """Tests for the Morsel object.""" |