Skip to content

Commit 29397ca

Browse files
committed
Move unicode test to test_main so it's included in CPython port.
1 parent 111df08 commit 29397ca

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

importlib_metadata/tests/test_integration.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from . import fixtures
1010
from .. import (
1111
_compat,
12-
distributions,
1312
version,
1413
)
1514

@@ -45,13 +44,3 @@ def __getattribute__(self, name):
4544
self.fixtures.enter_context(
4645
fixtures.install_finder(ModuleFreeFinder()))
4746
_compat.disable_stdlib_finder()
48-
49-
50-
class FileSystem(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase):
51-
def test_unicode_dir_on_sys_path(self):
52-
"""
53-
Ensure a Unicode subdirectory of a directory on sys.path
54-
does not crash.
55-
"""
56-
fixtures.build_files({'☃': {}}, prefix=self.site_dir)
57-
list(distributions())

importlib_metadata/tests/test_main.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,13 @@ def test_module(self):
256256

257257
def test_attr(self):
258258
assert self.ep.attr is None
259+
260+
261+
class FileSystem(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase):
262+
def test_unicode_dir_on_sys_path(self):
263+
"""
264+
Ensure a Unicode subdirectory of a directory on sys.path
265+
does not crash.
266+
"""
267+
fixtures.build_files({'☃': {}}, prefix=self.site_dir)
268+
list(distributions())

0 commit comments

Comments
 (0)