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 xtreak
Recipients gregory.p.smith, xtreak
Date 2019-05-13.13:55:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557755754.69.0.913565279245.issue36903@roundup.psfhosted.org>
In-reply-to
Content
There was a test added with 64aa6d2000665efb1a2eccae176df9520bf5f5e6. It  opens a stream of '/dev/null' in the test and doesn't close it causing ResourceWarning. A fix would be to assign it to a variable and close it as part of test's cleanup process. I will raise a PR for this.

./python.exe -m unittest test.test_logging.HandlerTest.test_post_fork_child_no_deadlock
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_logging.py:142: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='wt' encoding='UTF-8'>
  loggerDict.clear()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
.
----------------------------------------------------------------------
Ran 1 test in 0.606s

OK
History
Date User Action Args
2019-05-13 13:55:54xtreaksetrecipients: + xtreak, gregory.p.smith
2019-05-13 13:55:54xtreaksetmessageid: <1557755754.69.0.913565279245.issue36903@roundup.psfhosted.org>
2019-05-13 13:55:54xtreaklinkissue36903 messages
2019-05-13 13:55:54xtreakcreate