diff --git a/logging/unit_tests/test_client.py b/logging/unit_tests/test_client.py index 93727d614bff..5e48f7b95367 100644 --- a/logging/unit_tests/test_client.py +++ b/logging/unit_tests/test_client.py @@ -568,6 +568,7 @@ def test_get_default_handler_app_engine(self): with _Monkey(_MUT, _LOG_PATH_TEMPLATE=temp_log_path): with _Monkey(os, environ={_APPENGINE_FLEXIBLE_ENV_VM: 'True'}): handler = client.get_default_handler() + handler.close() # allow tempdir cleanup on Windows self.assertIsInstance(handler, AppEngineHandler)