https://github.com/python/cpython/commit/895119ec24589cbf522e375aa71f27b9b7383a8b
commit: 895119ec24589cbf522e375aa71f27b9b7383a8b
branch: main
author: CF Bolz-Tereick <cfb...@gmx.de>
committer: cfbolz <cfb...@gmx.de>
date: 2025-05-31T13:46:22+02:00
summary:

skip test for sys._stdlib_dir if that is not present (#134973)

files:
M Lib/test/test_sys.py

diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 65d15610ed1505..83745f3d0ba46e 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -1299,6 +1299,7 @@ def test_module_names(self):
         for name in sys.stdlib_module_names:
             self.assertIsInstance(name, str)
 
+    @unittest.skipUnless(hasattr(sys, '_stdlib_dir'), 'need sys._stdlib_dir')
     def test_stdlib_dir(self):
         os = import_helper.import_fresh_module('os')
         marker = getattr(os, '__file__', None)

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to