summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2021-02-21 21:48:18 (GMT)
committerGitHub <noreply@github.com>2021-02-21 21:48:18 (GMT)
commit50288aa8c955f66ab67a7dadf250ea5f4238eb67 (patch)
tree367fd4b7827d23296c667ef44df0d3a51793b203 /Lib/test
parentd5fc99873769f0d0d5c5d5d99059177a75a4e46e (diff)
downloadcpython-50288aa8c955f66ab67a7dadf250ea5f4238eb67.zip
cpython-50288aa8c955f66ab67a7dadf250ea5f4238eb67.tar.gz
cpython-50288aa8c955f66ab67a7dadf250ea5f4238eb67.tar.bz2
bpo-43288: Fix bug in test_importlib test. (GH-24612)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_importlib/fixtures.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/fixtures.py b/Lib/test/test_importlib/fixtures.py
index 429313e..d5bd74e 100644
--- a/Lib/test/test_importlib/fixtures.py
+++ b/Lib/test/test_importlib/fixtures.py
@@ -5,6 +5,7 @@ import pathlib
import tempfile
import textwrap
import contextlib
+import unittest
from test.support.os_helper import FS_NONASCII
from typing import Dict, Union
@@ -219,6 +220,9 @@ 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()):
"""Build a set of files/directories, as described by the