Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 49e78cd

Browse files
committedJan 16, 2024·
gh-114107: Fix symlink test if symlinks aren't supported
1 parent 17b73ab commit 49e78cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎Lib/test/test_importlib/test_main.py

+2
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)
Please sign in to comment.