aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_zoneinfo/test_zoneinfo.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_zoneinfo/test_zoneinfo.py b/Lib/test/test_zoneinfo/test_zoneinfo.py
index 8bcd6d2e995..af53a6b7770 100644
--- a/Lib/test/test_zoneinfo/test_zoneinfo.py
+++ b/Lib/test/test_zoneinfo/test_zoneinfo.py
@@ -25,11 +25,8 @@ from test.support.import_helper import import_module, CleanImport
lzma = import_module('lzma')
py_zoneinfo, c_zoneinfo = test_support.get_modules()
-try:
- importlib.metadata.metadata("tzdata")
- HAS_TZDATA_PKG = True
-except importlib.metadata.PackageNotFoundError:
- HAS_TZDATA_PKG = False
+# Gentoo installs a dummy `tzdata` package
+HAS_TZDATA_PKG = False
ZONEINFO_DATA = None
ZONEINFO_DATA_V1 = None