Serhiy Storchaka <[email protected]> added the comment:
This change made test_urlparse failing when ran with -We. Or just producing a
lot of warnings in the default mode.
======================================================================
ERROR: test_splitattr (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1113, in
test_splitattr
self.assertEqual(splitattr('/path;attr1=value1;attr2=value2'),
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 1103, in splitattr
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splitattr() is deprecated as of 3.8, use
urllib.parse.urlparse() instead
======================================================================
ERROR: test_splithost (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1006, in
test_splithost
self.assertEqual(splithost('//www.example.org:80/foo/bar/baz.html'),
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 977, in splithost
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splithost() is deprecated as of 3.8, use
urllib.parse.urlparse() instead
======================================================================
ERROR: test_splitnport (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1077, in
test_splitnport
self.assertEqual(splitnport('parrot:88'), ('parrot', 88))
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 1049, in
splitnport
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splitnport() is deprecated as of 3.8, use
urllib.parse.urlparse() instead
======================================================================
ERROR: test_splitpasswd (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1050, in
test_splitpasswd
self.assertEqual(splitpasswd('user:ab'), ('user', 'ab'))
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 1013, in
splitpasswd
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use
urllib.parse.urlparse() instead
======================================================================
ERROR: test_splitport (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1066, in
test_splitport
self.assertEqual(splitport('parrot:88'), ('parrot', '88'))
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 1026, in splitport
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splitport() is deprecated as of 3.8, use
urllib.parse.urlparse() instead
======================================================================
ERROR: test_splitquery (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1091, in
test_splitquery
self.assertEqual(splitquery('http://python.org/fake?foo=bar'),
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 1073, in
splitquery
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splitquery() is deprecated as of 3.8, use
urllib.parse.urlparse() instead
======================================================================
ERROR: test_splittag (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1101, in
test_splittag
self.assertEqual(splittag('http://example.com?foo=bar#baz'),
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 1088, in splittag
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splittag() is deprecated as of 3.8, use
urllib.parse.urlparse() instead
======================================================================
ERROR: test_splittype (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 998, in
test_splittype
self.assertEqual(splittype('type:opaquestring'), ('type', 'opaquestring'))
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 956, in splittype
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splittype() is deprecated as of 3.8, use
urllib.parse.urlparse() instead
======================================================================
ERROR: test_splituser (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1035, in
test_splituser
self.assertEqual(splituser('User:[email protected]:080'),
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 1000, in splituser
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splituser() is deprecated as of 3.8, use
urllib.parse.urlparse() instead
======================================================================
ERROR: test_splitvalue (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1124, in
test_splitvalue
self.assertEqual(splitvalue('foo=bar'), ('foo', 'bar'))
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 1117, in
splitvalue
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.splitvalue() is deprecated as of 3.8, use
urllib.parse.parse_qsl() instead
======================================================================
ERROR: test_to_bytes (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1131, in
test_to_bytes
result = urllib.parse.to_bytes('http://www.python.org')
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 920, in to_bytes
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.to_bytes() is deprecated as of 3.8
======================================================================
ERROR: test_unwrap (test.test_urlparse.Utility_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython-gc/Lib/test/test_urlparse.py", line 1137, in
test_unwrap
url = urllib.parse.unwrap('<URL:type://host/path>')
File "/home/serhiy/py/cpython-gc/Lib/urllib/parse.py", line 940, in unwrap
DeprecationWarning, stacklevel=2)
DeprecationWarning: urllib.parse.unwrap() is deprecated as of 3.8
----------------------------------------------------------------------
----------
status: closed -> open
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue27485>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com