summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_http_cookies.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-03-29 21:09:21 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-03-29 21:09:21 (GMT)
commit1813c1701f8e7e9287bccf66d1b4b8348c432168 (patch)
tree07d91a6490d90cdfbd84618daf79354c831343bd /Lib/test/test_http_cookies.py
parent0deefd5a9402e3bd13ed899f9b939062faf98114 (diff)
downloadcpython-1813c1701f8e7e9287bccf66d1b4b8348c432168.zip
cpython-1813c1701f8e7e9287bccf66d1b4b8348c432168.tar.gz
cpython-1813c1701f8e7e9287bccf66d1b4b8348c432168.tar.bz2
#2211: properly document the Morsel behavior changes.
Also deprecate the undocumented set argument instead of removing it already in 3.5. Initial patch by Demian Brecht.
Diffstat (limited to 'Lib/test/test_http_cookies.py')
-rw-r--r--Lib/test/test_http_cookies.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_http_cookies.py b/Lib/test/test_http_cookies.py
index 5f1e74b..cf0f6b9 100644
--- a/Lib/test/test_http_cookies.py
+++ b/Lib/test/test_http_cookies.py
@@ -261,6 +261,8 @@ class MorselTests(unittest.TestCase):
morsel.value = ''
with self.assertWarnsRegex(DeprecationWarning, r'\bcoded_value\b'):
morsel.coded_value = ''
+ with self.assertWarnsRegex(DeprecationWarning, r'\bLegalChars\b'):
+ morsel.set('key', 'value', 'coded_value', LegalChars='.*')
def test_eq(self):
base_case = ('key', 'value', '"value"')