There was an error while loading. Please reload this page.
1 parent d5fc998 commit 50288aaCopy full SHA for 50288aa
2 files changed
Lib/test/test_importlib/fixtures.py
@@ -5,6 +5,7 @@
5
import tempfile
6
import textwrap
7
import contextlib
8
+import unittest
9
10
from test.support.os_helper import FS_NONASCII
11
from typing import Dict, Union
@@ -219,6 +220,9 @@ def setUp(self):
219
220
self.fixtures.enter_context(tempdir_as_cwd())
221
build_files(self.files)
222
223
+ def skip(self, reason):
224
+ raise unittest.SkipTest(reason)
225
+
226
227
def build_files(file_defs, prefix=pathlib.Path()):
228
"""Build a set of files/directories, as described by the
Misc/NEWS.d/next/Tests/2021-02-21-11-11-53.bpo-43288.LfTvL-.rst
@@ -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