diff options
author | 2023-05-13 14:31:39 +0100 | |
---|---|---|
committer | 2023-05-13 14:34:33 +0100 | |
commit | 509449c1a7d4230c3a4b1e335b681fbecf0313c0 (patch) | |
tree | 27ea2c360723503528ec9b2069dd513b9b26f613 /pydis_site/apps/content/tests | |
parent | Specify file encoding so tests pass on windows (diff) |
Use the new datetime.UTC alias over datetime.timezone.utc
Diffstat (limited to 'pydis_site/apps/content/tests')
-rw-r--r-- | pydis_site/apps/content/tests/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/content/tests/test_utils.py b/pydis_site/apps/content/tests/test_utils.py index 462818b5..7f7736f9 100644 --- a/pydis_site/apps/content/tests/test_utils.py +++ b/pydis_site/apps/content/tests/test_utils.py @@ -17,7 +17,7 @@ from pydis_site.apps.content.tests.helpers import ( BASE_PATH, MockPagesTestCase, PARSED_CATEGORY_INFO, PARSED_HTML, PARSED_METADATA ) -_time = datetime.datetime(2022, 10, 10, 10, 10, 10, tzinfo=datetime.timezone.utc) +_time = datetime.datetime(2022, 10, 10, 10, 10, 10, tzinfo=datetime.UTC) _time_str = _time.strftime(settings.GITHUB_TIMESTAMP_FORMAT) TEST_COMMIT_KWARGS = { "sha": "123", |