mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-39791: Support file systems that cannot support non-ascii filenames (skipping tests in that case). (GH-20681)
(cherry picked from commit 2efe18bf27
)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
This commit is contained in:
parent
1d711f2e31
commit
71f501698d
2 changed files with 18 additions and 2 deletions
|
@ -254,11 +254,16 @@ class TestEntryPoints(unittest.TestCase):
|
|||
assert self.ep.attr is None
|
||||
|
||||
|
||||
class FileSystem(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase):
|
||||
class FileSystem(
|
||||
fixtures.OnSysPath, fixtures.SiteDir, fixtures.FileBuilder,
|
||||
unittest.TestCase):
|
||||
def test_unicode_dir_on_sys_path(self):
|
||||
"""
|
||||
Ensure a Unicode subdirectory of a directory on sys.path
|
||||
does not crash.
|
||||
"""
|
||||
fixtures.build_files({'☃': {}}, prefix=self.site_dir)
|
||||
fixtures.build_files(
|
||||
{self.unicode_filename(): {}},
|
||||
prefix=self.site_dir,
|
||||
)
|
||||
list(distributions())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue