https://github.com/python/cpython/commit/6f9bd9ce7cfd62381ec2ea57fef7d465679a0648
commit: 6f9bd9ce7cfd62381ec2ea57fef7d465679a0648
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-10-23T20:14:03Z
summary:

[3.15] gh-120965: Skip `test_zoneinfo.ExtensionBuiltTest` if C extension is not 
available (GH-131104) (#160470)

(cherry picked from commit 897671bfd52767e9941640ec01f6cb68c6342d9b)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Paul Ganssle <[email protected]>

files:
M Lib/test/test_zoneinfo/test_zoneinfo.py

diff --git a/Lib/test/test_zoneinfo/test_zoneinfo.py 
b/Lib/test/test_zoneinfo/test_zoneinfo.py
index 40696b09d95719..8513268b0d56b6 100644
--- a/Lib/test/test_zoneinfo/test_zoneinfo.py
+++ b/Lib/test/test_zoneinfo/test_zoneinfo.py
@@ -12,6 +12,7 @@
 import re
 import shutil
 import struct
+import sys
 import tempfile
 import unittest
 from datetime import date, datetime, time, timedelta, timezone
@@ -2201,6 +2202,8 @@ def test_pydatetime(self):
             PYTHONTZPATH=str(ZONEINFO_DATA.tzpath))
 
 
[email protected](sys.modules.get("_zoneinfo") is None,
+                 "_zoneinfo C module not available")
 class ExtensionBuiltTest(unittest.TestCase):
     """Smoke test to ensure that the C and Python extensions are both tested.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to