ResourceWarning: unclosed file warning in tests when running on Python 3.5

Bug #1807606 reported by Slawek Kaplonski
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.log
Expired
Undecided
Unassigned

Bug Description

When running neutron functional tests on python 3.5 we see a lot of warnings like:

/opt/stack/neutron/.tox/dsvm-functional/lib/python3.5/site-packages/oslo_log/log.py:425: ResourceWarning: unclosed file <_io.TextIOWrapper name='/opt/stack/logs/dsvm-functional-logs/neutron.tests.functional.agent.test_dhcp_agent.DHCPAgentOVSTestCase.test_stale_metadata_proxy_killed.txt' mode='a' encoding='UTF-8'>

It looks for me that WatchedFileHandler is not closing file properly when logging is finished.

Revision history for this message
Ben Nemec (bnemec) wrote :

Is this still happening? I don't see it in a recent gate run of that test, although it's possible it isn't being captured by ci logging.

Changed in oslo.log:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for oslo.log because there has been no activity for 60 days.]

Changed in oslo.log:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.