diff options
author | Petr Viktorin <encukou@gmail.com> | 2024-01-16 15:10:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 15:10:03 (GMT) |
commit | c361a1f395de9e508b6e1b0a4c5e69204905a7b7 (patch) | |
tree | 19020f582747ece95684fff46b6a3012abfccddf | |
parent | ac44ec6206a1e5479effd91e02e2946b94e98ede (diff) | |
download | cpython-c361a1f395de9e508b6e1b0a4c5e69204905a7b7.zip cpython-c361a1f395de9e508b6e1b0a4c5e69204905a7b7.tar.gz cpython-c361a1f395de9e508b6e1b0a4c5e69204905a7b7.tar.bz2 |
gh-114107: Fix importlib.resources symlink test if symlinks aren't supported (#114108)
gh-114107: Fix symlink test if symlinks aren't supported
-rw-r--r-- | Lib/test/test_importlib/test_main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/test_main.py b/Lib/test/test_importlib/test_main.py index 1d38171..0a769b8 100644 --- a/Lib/test/test_importlib/test_main.py +++ b/Lib/test/test_importlib/test_main.py @@ -4,6 +4,7 @@ import unittest import warnings import importlib.metadata import contextlib +from test.support import os_helper try: import pyfakefs.fake_filesystem_unittest as ffs @@ -403,6 +404,7 @@ class PackagesDistributionsTest( assert not any(name.endswith('.dist-info') for name in distributions) + @os_helper.skip_unless_symlink def test_packages_distributions_symlinked_top_level(self) -> None: """ Distribution is resolvable from a simple top-level symlink in RECORD. |