Skip to content

Commit 12c03d5

Browse files
encukouGlyphack
authored andcommitted
pythongh-114107: Fix importlib.resources symlink test if symlinks aren't supported (python#114108)
pythongh-114107: Fix symlink test if symlinks aren't supported
1 parent a351b28 commit 12c03d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_importlib/test_main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import warnings
55
import importlib.metadata
66
import contextlib
7+
from test.support import os_helper
78

89
try:
910
import pyfakefs.fake_filesystem_unittest as ffs
@@ -403,6 +404,7 @@ def test_packages_distributions_all_module_types(self):
403404

404405
assert not any(name.endswith('.dist-info') for name in distributions)
405406

407+
@os_helper.skip_unless_symlink
406408
def test_packages_distributions_symlinked_top_level(self) -> None:
407409
"""
408410
Distribution is resolvable from a simple top-level symlink in RECORD.

0 commit comments

Comments
 (0)