]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
skip test for sys._stdlib_dir if that is not present (#134973)
authorCF Bolz-Tereick <cfbolz@gmx.de>
Sat, 31 May 2025 11:46:22 +0000 (13:46 +0200)
committerGitHub <noreply@github.com>
Sat, 31 May 2025 11:46:22 +0000 (13:46 +0200)
Lib/test/test_sys.py

index 65d15610ed15051f49391061192d3a48d6842fd8..83745f3d0ba46ed9bad2f3a83affa03716b9074e 100644 (file)
@@ -1299,6 +1299,7 @@ class SysModuleTest(unittest.TestCase):
         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)