This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Petr Stupka
Recipients Petr Stupka
Date 2018-12-15.00:20:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544833222.75.0.788709270274.issue35505@psf.upfronthosting.co.za>
In-reply-to
Content
OS: CentOS Linux release 7.6.1810 (Core)

======================================================================
FAIL: test_imap4_host_default_value (test.test_imaplib.TestImaplib)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/stupka/build/Python-3.7.1/Lib/test/test_imaplib.py", line 83, in test_imap4_host_default_value
    imaplib.IMAP4()
AssertionError: OSError not raised

Stderr:
/home/stupka/build/Python-3.7.1/Lib/socket.py:660: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 59922, 0, 0), 
raddr=('::1', 143, 0, 0)>
  self._sock = None

----------------------------------------------------------------------

This test fails when there is (in my case) dovecot running and listening
on ::1, port 143 - expected exception is not raised.
With dovecot stopped and nothing listening on port 143 the test passes.

It should probably check if there is something listening on ::1:143 and if so then the test can be skipped?
History
Date User Action Args
2018-12-15 00:20:22Petr Stupkasetrecipients: + Petr Stupka
2018-12-15 00:20:22Petr Stupkasetmessageid: <1544833222.75.0.788709270274.issue35505@psf.upfronthosting.co.za>
2018-12-15 00:20:22Petr Stupkalinkissue35505 messages
2018-12-15 00:20:22Petr Stupkacreate