]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix test_ftplib warning if IPv6 is not available (#1457)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 4 May 2017 16:10:30 +0000 (18:10 +0200)
committerGitHub <noreply@github.com>
Thu, 4 May 2017 16:10:30 +0000 (18:10 +0200)
commit9fb061ba9ca6021055ca5a9bac193aeb1211aba0
treea3501d333684524646f0ed74458fe767cc4d97f1
parent0f7f67660653517a5b3ed93e4b658583ff4cd355
Fix test_ftplib warning if IPv6 is not available (#1457)

DummyFTPServer now calls del_channel() on bind() error to prevent the
following warning in TestIPv6Environment.setUpClass():

Warning -- asyncore.socket_map was modified by test_ftplib
  Before: {}
  After:  {3: <test.test_ftplib.DummyFTPServer 127.0.0.1:0 at ...>}
Lib/test/test_ftplib.py