Message342330
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 |
|
Date |
User |
Action |
Args |
2019-05-13 13:55:54 | xtreak | set | recipients:
+ xtreak, gregory.p.smith |
2019-05-13 13:55:54 | xtreak | set | messageid: <1557755754.69.0.913565279245.issue36903@roundup.psfhosted.org> |
2019-05-13 13:55:54 | xtreak | link | issue36903 messages |
2019-05-13 13:55:54 | xtreak | create | |
|