From 539c1d719191eb0ae3a49290c26b628de7c27cd5 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Thu, 12 Aug 2021 15:24:19 -0600 Subject: [PATCH] fix: remove unused requirement pytz (#422) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: remove unused requirement pytz * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- setup.py | 1 - tests/unit/v1/test_watch.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 5e913edcf..50de98e26 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,6 @@ # https://github.com/googleapis/google-cloud-python/issues/10566 "google-cloud-core >= 1.4.1, <3.0.0dev", "packaging >= 14.3", - "pytz", "proto-plus >= 1.10.0", ] extras = {} diff --git a/tests/unit/v1/test_watch.py b/tests/unit/v1/test_watch.py index 759549b72..c5b758459 100644 --- a/tests/unit/v1/test_watch.py +++ b/tests/unit/v1/test_watch.py @@ -566,9 +566,9 @@ def test_on_snapshot_unknown_listen_type(self): ) def test_push_callback_called_no_changes(self): - import pytz - - dummy_time = (datetime.datetime.fromtimestamp(1534858278, pytz.utc),) + dummy_time = ( + datetime.datetime.fromtimestamp(1534858278, datetime.timezone.utc), + ) inst = self._makeOne() inst.push(dummy_time, "token")