[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)
This commit is contained in:
Neil Schemenauer 2021-02-21 15:24:41 -08:00 committed by GitHub
parent 693aeacf88
commit 44fe32061d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -5,6 +5,7 @@ import pathlib
import tempfile
import textwrap
import contextlib
import unittest
@contextlib.contextmanager
@ -220,6 +221,9 @@ class FileBuilder:
return test.support.FS_NONASCII or \
self.skip("File system does not support non-ascii.")
def skip(self, reason):
raise unittest.SkipTest(reason)
def DALS(str):
"Dedent and left-strip"

View file

@ -0,0 +1,2 @@
Fix test_importlib to correctly skip Unicode file tests if the fileystem
does not support them.