From 4f584931c4e2abe60d80fa7a51ef4c6ee662874b Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Fri, 19 May 2017 16:37:47 -0400 Subject: [PATCH] Remove uncovered / pointless branch. (#3445) --- .../tests/unit/handlers/transports/test_background_thread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logging/tests/unit/handlers/transports/test_background_thread.py b/logging/tests/unit/handlers/transports/test_background_thread.py index ccc244fa65c8..3e3378dcd361 100644 --- a/logging/tests/unit/handlers/transports/test_background_thread.py +++ b/logging/tests/unit/handlers/transports/test_background_thread.py @@ -290,8 +290,8 @@ def __init__(self): def log_struct(self, info, severity=logging.INFO, resource=None): from google.cloud.logging.logger import _GLOBAL_RESOURCE - if resource is None: - resource = _GLOBAL_RESOURCE + assert resource is None + resource = _GLOBAL_RESOURCE self.log_struct_called_with = (info, severity, resource) self.entries.append(info)