diff options
author | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2020-10-10 04:39:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 04:39:09 (GMT) |
commit | 20bdeedfb4ebd250dad9834c96cb858d83c896cb (patch) | |
tree | 9c9c2cede8dbe30b75c43ce5168d4982378832c5 | |
parent | 1f75fc7a9d9efbced2e0b0001ac148268a626d63 (diff) | |
download | cpython-20bdeedfb4ebd250dad9834c96cb858d83c896cb.zip cpython-20bdeedfb4ebd250dad9834c96cb858d83c896cb.tar.gz cpython-20bdeedfb4ebd250dad9834c96cb858d83c896cb.tar.bz2 |
[3.9] bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734) (GH-22039)
(cherry picked from commit 5f0769a)
Co-authored-by: Nathan M <nathanmaynes@gmail.com>
-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 8570326..d4704b7 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 import_module +lzma = import_module('lzma') py_zoneinfo, c_zoneinfo = test_support.get_modules() try: |