tag 912183 + moreinfo

See Python 3.7 document,

https://docs.python.org/3.7/library/urllib.parse.html#urllib.parse.quote

  Changed in version 3.7: Moved from RFC 2396 to RFC 3986 for quoting URL 
strings. “~” is now included in the set of reserved characters.

I change test_cookies.py, test has success.

$ diff -u .pybuild/cpython3_3.7_cookies/build/test_cookies.py 
.pybuild/cpython3_3.7_cookies/build/test_cookies_my.py
--- .pybuild/cpython3_3.7_cookies/build/test_cookies.py 2014-07-26 
05:40:22.000000000 +0900
+++ .pybuild/cpython3_3.7_cookies/build/test_cookies_my.py      2019-01-19 
14:56:28.768869520 +0900
@@ -2225,7 +2225,7 @@
         else:
             assert cookie_value_re.match(quoted)
 
-    assert set(dont_quote) == set("!#$%&'()*+/:<=>?@[]^`{|}~")
+    assert set(dont_quote) == set("!#$%&'()*+/:<=>?@[]^`{|}")
 
     # From 128 on urllib.quote will not work on a unichr() return value.
     # We'll want to encode utf-8 values into ASCII, then do the quoting.
@@ -2257,7 +2257,7 @@
         else:
             assert extension_av_re.match(quoted)
 
-    assert set(dont_quote) == set(' !"#$%&\'()*+,/:<=>?@[\\]^`{|}~')
+    assert set(dont_quote) == set(' !"#$%&\'()*+,/:<=>?@[\\]^`{|}')
 
 
 test_encode_cookie_value = _simple_test(encode_cookie_value,


$ python3.7 -m pytest .pybuild/cpython3_3.7_cookies/build/test_cookies_my.py 
========================================= test session starts 
==========================================
platform linux -- Python 3.7.2, pytest-4.0.2, py-1.7.0, pluggy-0.8.0
rootdir: /home/norimitu/mkdeb/python-cookies-2.2.1, inifile:
collected 67 items                                                              
                       

.pybuild/cpython3_3.7_cookies/build/test_cookies_my.py 
......................................... [ 61%]
..........................                                                      
                 [100%]

=========================================== warnings summary 
===========================================
.pybuild/cpython3_3.7_cookies/build/cookies.py:312
  
/home/norimitu/mkdeb/python-cookies-2.2.1/.pybuild/cpython3_3.7_cookies/build/cookies.py:312:
 DeprecationWarning: Flags not at the start of the expression '(?ix)  # 
Case-insens' (truncated)
    ATTR_RE = re.compile(ATTR)

.pybuild/cpython3_3.7_cookies/build/test_cookies_my.py::TestDefinitions::test_expires_av
  
/home/norimitu/mkdeb/python-cookies-2.2.1/.pybuild/cpython3_3.7_cookies/build/test_cookies_my.py:578:
 DeprecationWarning: Flags not at the start of the expression 
'^Expires=(?P<expires' (truncated)
    match = re.compile("^%s\Z" % Definitions.EXPIRES_AV).match
  
/home/norimitu/mkdeb/python-cookies-2.2.1/.pybuild/cpython3_3.7_cookies/build/test_cookies_my.py:578:
 DeprecationWarning: Flags not at the start of the expression 
'^Expires=(?P<expires' (truncated)
    match = re.compile("^%s\Z" % Definitions.EXPIRES_AV).match

-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================ 67 passed, 3 warnings in 0.28 seconds 
=================================

regards.

Reply via email to