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