bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)

This commit is contained in:
Nathan M 2020-08-06 18:09:40 -04:00 committed by GitHub
parent 777b611c8c
commit 5f0769a752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,6 @@ import dataclasses
import importlib.metadata
import io
import json
import lzma
import os
import pathlib
import pickle
@ -20,7 +19,9 @@ from functools import cached_property
from . import _support as test_support
from ._support import OS_ENV_LOCK, TZPATH_TEST_LOCK, ZoneInfoTestBase
from test.support.import_helper import import_module
lzma = import_module('lzma')
py_zoneinfo, c_zoneinfo = test_support.get_modules()
try: