8000 bpo-43288: Fix bug in test_importlib test. (GH-24612) · python/cpython@50288aa · GitHub
[go: up one dir, main page]

Skip to content

Commit 50288aa

Browse files
authored
bpo-43288: Fix bug in test_importlib test. (GH-24612)
1 parent d5fc998 commit 50288aa

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Lib/test/test_importlib/fixtures.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import tempfile
66
import textwrap
77
import contextlib
8+
import unittest
89

910
from test.support.os_helper import FS_NONASCII
1011
from typing import Dict, Union
@@ -219,6 +220,9 @@ def setUp(self):
219220
self.fixtures.enter_context(tempdir_as_cwd())
220221
build_files(self.files)
221222

223+
def skip(self, reason):
224+
raise unittest.SkipTest(reason)
225+
222226

223227
def build_files(file_defs, prefix=pathlib.Path()):
224228
"""Build a set of files/directories, as described by the
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix test_importlib to correctly skip Unicode file tests if the fileystem
2+
does not support them.

0 commit comments

Comments
 (0)
0