8000 skip test for sys._stdlib_dir if that is not present (#134973) · python/cpython@895119e · GitHub
[go: up one dir, main page]

Skip to content

Commit 895119e

Browse files
authored
skip test for sys._stdlib_dir if that is not present (#134973)
1 parent af0d326 commit 895119e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_sys.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,7 @@ def test_module_names(self):
12991299
for name in sys.stdlib_module_names:
13001300
self.assertIsInstance(name, str)
13011301

1302+
@unittest.skipUnless(hasattr(sys, '_stdlib_dir'), 'need sys._stdlib_dir')
13021303
def test_stdlib_dir(self):
13031304
os = import_helper.import_fresh_module('os')
13041305
marker = getattr(os, '__file__', None)

0 commit comments

Comments
 (0)
0