Skip to content

Commit 44fe320

Browse files
authored
[3.9] bpo-43288: Fix bug in test_importlib test. (GH-24616)
* bpo-43288: Fix bug in test_importlib test. (GH-24612) * Fix failed merge of bpo-43288. (GH-24614)
1 parent 693aeac commit 44fe320

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

1011
@contextlib.contextmanager
@@ -220,6 +221,9 @@ def unicode_filename(self):
220221
return test.support.FS_NONASCII or \
221222
self.skip("File system does not support non-ascii.")
222223

224+
def skip(self, reason):
225+
raise unittest.SkipTest(reason)
226+
223227

224228
def DALS(str):
225229
"Dedent and left-strip"
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)