Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Lib/test/test_importlib/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import tempfile
import textwrap
import contextlib
import unittest

from test.support.os_helper import FS_NONASCII
from typing import Dict, Union
Expand Down Expand Up @@ -219,6 +220,9 @@ def setUp(self):
self.fixtures.enter_context(tempdir_as_cwd())
build_files(self.files)

def skip(self, reason):
raise unittest.SkipTest(reason)


def build_files(file_defs, prefix=pathlib.Path()):
"""Build a set of files/directories, as described by the
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix test_importlib to correctly skip Unicode file tests if the fileystem
does not support them.