diff options
Diffstat (limited to 'Lib/test/test_importlib/fixtures.py')
-rw-r--r-- | Lib/test/test_importlib/fixtures.py | 4 |
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 |