Skip to content

Commit baaef0d

Browse files
authored
chore: remove pytz (#1520)
1 parent 93cb33d commit baaef0d

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.isort.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[settings]
2-
known_third_party = aniso8601,graphql,graphql_relay,promise,pytest,pytz,pyutils,setuptools,snapshottest,sphinx_graphene_theme
2+
known_third_party = aniso8601,graphql,graphql_relay,promise,pytest,pyutils,setuptools,snapshottest,sphinx_graphene_theme

graphene/types/tests/test_datetime.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import datetime
22

3-
import pytz
43
from graphql import GraphQLError
54

65
from pytest import fixture
@@ -30,7 +29,7 @@ def resolve_time(self, info, _at=None):
3029

3130
@fixture
3231
def sample_datetime():
33-
utc_datetime = datetime.datetime(2019, 5, 25, 5, 30, 15, 10, pytz.utc)
32+
utc_datetime = datetime.datetime(2019, 5, 25, 5, 30, 15, 10, datetime.timezone.utc)
3433
return utc_datetime
3534

3635

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def run_tests(self):
5353
"snapshottest>=0.6,<1",
5454
"coveralls>=3.3,<4",
5555
"mock>=4,<5",
56-
"pytz==2022.1",
5756
"iso8601>=1,<2",
5857
]
5958

0 commit comments

Comments
 (0)