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 74f88bd8..12927617 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 from pytest import fixture @@ -30,7 +29,7 @@ def resolve_time(self, info, _at=None): @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 792767f6..f11c0bf8 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,6 @@ def run_tests(self): "snapshottest>=0.6,<1", "coveralls>=3.3,<4", "mock>=5,<6", - "pytz==2022.1", "iso8601>=2,<3", ]