mirror of
https://github.com/python/cpython.git
synced 2024-12-01 05:45:40 +08:00
gh-114107: Fix importlib.resources symlink test if symlinks aren't supported (#114108)
gh-114107: Fix symlink test if symlinks aren't supported
This commit is contained in:
parent
ac44ec6206
commit
c361a1f395
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user