diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-10-12 00:19:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 10:19:09 +0300 |
commit | 47a50fe16f9f074daaaa3e6aa85e76502955ed40 (patch) | |
tree | 6f0b53047185a1649e07ceb67b3ce0d01d07a510 | |
parent | 3d7009e88e0ae516b10d8d3d402cc66e86fb631e (diff) | |
download | cpython-git-47a50fe16f9f074daaaa3e6aa85e76502955ed40.tar.gz |
bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28872)
(cherry picked from commit 15188b115a2da815556053372c912a81a74be43b)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
-rw-r--r-- | Lib/test/test_logging.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 1a5f8b60f5..93f6e5f85a 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -5298,6 +5298,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest): time.sleep(1.1) # a little over a second ... r = logging.makeLogRecord({'msg': 'testing - device file'}) self.assertFalse(fh.shouldRollover(r)) + fh.close() # other test methods added below def test_rollover(self): |