From 4edd3cc368886adc65d89098949305b1e06b2dc3 Mon Sep 17 00:00:00 2001 From: Wong Chun Hong Date: Wed, 30 Aug 2023 01:48:29 +0100 Subject: [PATCH] remove pytz --- .isort.cfg | 2 +- graphene/types/tests/test_datetime.py | 3 +-- setup.py | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.isort.cfg b/.isort.cfg index 76c6f842..02dbdee4 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -1,2 +1,2 @@ [settings] -known_third_party = aniso8601,graphql,graphql_relay,promise,pytest,pytz,pyutils,setuptools,snapshottest,sphinx_graphene_theme +known_third_party = aniso8601,graphql,graphql_relay,promise,pytest,pyutils,setuptools,snapshottest,sphinx_graphene_theme diff --git a/graphene/types/tests/test_datetime.py b/graphene/types/tests/test_datetime.py index bb6f212c..dcbfb964 100644 --- a/graphene/types/tests/test_datetime.py +++ b/graphene/types/tests/test_datetime.py @@ -1,6 +1,5 @@ import datetime -import pytz from graphql import GraphQLError import pytest @@ -29,7 +28,7 @@ schema = Schema(query=Query) @pytest.fixture def sample_datetime(): - utc_datetime = datetime.datetime(2019, 5, 25, 5, 30, 15, 10, pytz.utc) + utc_datetime = datetime.datetime(2019, 5, 25, 5, 30, 15, 10, datetime.timezone.utc) return utc_datetime diff --git a/setup.py b/setup.py index 56d3cdd0..fd6cd273 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,6 @@ tests_require = [ "coveralls", "promise", "mock", - "pytz", "iso8601", ]