Skip to content

Commit 8db8ec1

Browse files
committed
Force close logging handler.
Allow tempdir cleanup to work as expected on Windows.
1 parent 6375e1f commit 8db8ec1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

logging/unit_tests/test_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ def test_get_default_handler_app_engine(self):
568568
with _Monkey(_MUT, _LOG_PATH_TEMPLATE=temp_log_path):
569569
with _Monkey(os, environ={_APPENGINE_FLEXIBLE_ENV_VM: 'True'}):
570570
handler = client.get_default_handler()
571+
handler.close() # allow tempdir cleanup on Windows
571572

572573
self.assertIsInstance(handler, AppEngineHandler)
573574

0 commit comments

Comments
 (0)