diff options
author | Nathan M <nathanmaynes@gmail.com> | 2020-08-06 22:09:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-06 22:09:40 (GMT) |
commit | 5f0769a7529fcbc28190864f098f192053a10747 (patch) | |
tree | 7d51ecad2b3ebb89a1b012aa30983a26b394b5b2 /Lib/test/test_zoneinfo | |
parent | 777b611c8c5676b80898a429f71d28e59bddc49d (diff) | |
download | cpython-5f0769a7529fcbc28190864f098f192053a10747.zip cpython-5f0769a7529fcbc28190864f098f192053a10747.tar.gz cpython-5f0769a7529fcbc28190864f098f192053a10747.tar.bz2 |
bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)
Diffstat (limited to 'Lib/test/test_zoneinfo')
-rw-r--r-- | Lib/test/test_zoneinfo/test_zoneinfo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_zoneinfo/test_zoneinfo.py b/Lib/test/test_zoneinfo/test_zoneinfo.py index 1f1fa60..d16e0d2 100644 --- a/Lib/test/test_zoneinfo/test_zoneinfo.py +++ b/Lib/test/test_zoneinfo/test_zoneinfo.py @@ -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: |