summaryrefslogtreecommitdiff
path: root/Lib/test/test_http_cookies.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-03-29 17:09:21 -0400
committerR David Murray <rdmurray@bitdance.com>2015-03-29 17:09:21 -0400
commit6febbb37e72e25730993ba04eba4362fac61b234 (patch)
tree41fab01f549f680bcba82b1011a69a7e1a5a30cc /Lib/test/test_http_cookies.py
parentbb350655326750d6a74ae3af90b4ced4b8c2d793 (diff)
downloadcpython-6febbb37e72e25730993ba04eba4362fac61b234.tar.gz
#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 5f1e74bbc6..cf0f6b9a40 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"')