Accounts for Python 3.8 backported zoneinfo

This commit is contained in:
Trenton Holmes 2022-05-04 15:13:17 -07:00
parent c3b5b47b22
commit 7432ef9e19

View File

@ -1,9 +1,13 @@
import shutil import shutil
import tempfile import tempfile
import zoneinfo
from pathlib import Path from pathlib import Path
from unittest import mock from unittest import mock
try:
import zoneinfo
except ImportError:
import backports.zoneinfo as zoneinfo
from django.test import override_settings from django.test import override_settings
from django.test import TestCase from django.test import TestCase
from django.utils import timezone from django.utils import timezone