Skip to content

Commit f0c5679

Browse files
committed
Turns out test.support is available in stdlib, so rely on it unconditionally. Closes #125.
1 parent 2cb809a commit f0c5679

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

importlib_metadata/tests/fixtures.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import shutil
66
import tempfile
77
import textwrap
8+
import test.support
89

910
from .._compat import pathlib, contextlib
1011

@@ -217,11 +218,6 @@ def build_files(file_defs, prefix=pathlib.Path()):
217218

218219
class FileBuilder:
219220
def unicode_filename(self):
220-
try:
221-
import test.support
222-
except ImportError:
223-
# outside CPython, hard-code a unicode snowman
224-
return '☃'
225221
return test.support.FS_NONASCII or \
226222
self.skip("File system does not support non-ascii.")
227223

0 commit comments

Comments
 (0)