]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix failed merge of bpo-43288. (GH-24614)
authorNeil Schemenauer <nas-github@arctrix.com>
Sun, 21 Feb 2021 22:22:14 +0000 (14:22 -0800)
committerGitHub <noreply@github.com>
Sun, 21 Feb 2021 22:22:14 +0000 (14:22 -0800)
Lib/test/test_importlib/fixtures.py

index d5bd74ef0ffed880618f1f6e5c0b1793d57783c2..acf6bc87c74e9dc1a01195880c5442cf7b791be5 100644 (file)
@@ -220,8 +220,6 @@ class LocalPackage:
         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"