From 7432ef9e19603f392c4240f26eef90d113a80f57 Mon Sep 17 00:00:00 2001 From: Trenton Holmes Date: Wed, 4 May 2022 15:13:17 -0700 Subject: [PATCH] Accounts for Python 3.8 backported zoneinfo --- src/documents/tests/test_document_model.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/documents/tests/test_document_model.py b/src/documents/tests/test_document_model.py index 3ff4d3253..41e3d9337 100644 --- a/src/documents/tests/test_document_model.py +++ b/src/documents/tests/test_document_model.py @@ -1,9 +1,13 @@ import shutil import tempfile -import zoneinfo from pathlib import Path from unittest import mock +try: + import zoneinfo +except ImportError: + import backports.zoneinfo as zoneinfo + from django.test import override_settings from django.test import TestCase from django.utils import timezone