From 737c80776010eee740c8a2e3fe8f75b3bfc07154 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Sun, 21 Feb 2021 13:52:07 -0800 Subject: [PATCH] Fix failed merge of bpo-43288. --- Lib/test/test_importlib/fixtures.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_importlib/fixtures.py b/Lib/test/test_importlib/fixtures.py index d5bd74ef0ffed88..acf6bc87c74e9dc 100644 --- a/Lib/test/test_importlib/fixtures.py +++ b/Lib/test/test_importlib/fixtures.py @@ -220,8 +220,6 @@ 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()): @@ -262,6 +260,9 @@ class FileBuilder: def unicode_filename(self): return 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"