[New-bugs-announce] [issue22340] Fix Python 3 warnings in Python 2 tests

STINNER Victor report at bugs.python.org
Fri Sep 5 12:45:10 CEST 2014


New submission from STINNER Victor:

Running Python 2 test suite with "python -3 -Wd" displays a lot of DeprecationWarning warnings. Just one example:

/home/haypo/prog/python/2.7/Lib/test/test_ssl.py:2368: DeprecationWarning: urllib.urlopen() has been removed in Python 3.0 in favor of urllib2.urlopen()

Attached patch fix most of them (maybe all).

----------
components: Tests
files: fix_py3k_warn.patch
keywords: patch
messages: 226418
nosy: haypo
priority: normal
severity: normal
status: open
title: Fix Python 3 warnings in Python 2 tests
versions: Python 2.7
Added file: http://bugs.python.org/file36547/fix_py3k_warn.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22340>
_______________________________________


More information about the New-bugs-announce mailing list