Skip to content

Commit

Permalink
bpo-43288: Fix bug in test_importlib test. (GH-24612)
Browse files Browse the repository at this point in the history
  • Loading branch information
nascheme committed Feb 21, 2021
1 parent d5fc998 commit 50288aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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.

0 comments on commit 50288aa

Please sign in to comment.