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 pablogsal
Recipients asvetlov, pablogsal, yselivanov
Date 2018-12-28.04:21:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545970910.26.0.567308733358.issue35602@roundup.psfhosted.org>
In-reply-to
Content
According to this buildbot:

https://buildbot.python.org/all/#/builders/170/builds/218/steps/4/logs/stdio

there is some cleanup failure in test_sock_sendfile_os_error_first_call:

test_sock_sendfile_os_error_first_call (test.test_asyncio.test_unix_events.SelectorEventLoopUnixSockSendfileTests) ... /usr/home/buildbot/python/3.7.koobs-freebsd10.nondebug/build/Lib/asyncio/selector_events.py:655: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=10>
  source=self)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok

The code that is supposed to clean up the resource is:

        def cleanup():
            if proto.transport is not None:
                # can be None if the task was cancelled before
                # connection_made callback
                proto.transport.close()
                self.run_loop(proto.wait_closed())

apparently, proto.transport may be None and then it fails to be closed even if the test succeeds (I assume because the condition in the comment happens or something else) and then the transport is not properly closed.
History
Date User Action Args
2018-12-28 04:21:53pablogsalsetrecipients: + pablogsal, asvetlov, yselivanov
2018-12-28 04:21:50pablogsalsetmessageid: <1545970910.26.0.567308733358.issue35602@roundup.psfhosted.org>
2018-12-28 04:21:50pablogsallinkissue35602 messages
2018-12-28 04:21:50pablogsalcreate