File tree Expand file tree Collapse file tree 4 files changed +22
-5
lines changed
Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ testing =
3737 pyfakefs
3838 flufl.flake8
3939 pytest-perf >= 0.9.2
40+ jaraco.collections
4041
4142docs =
4243 # upstream
Original file line number Diff line number Diff line change 99import functools
1010import contextlib
1111
12- from .py39compat import FS_NONASCII
12+ from .py39compat import os_helper
1313
1414from . import _path
1515from ._path import FilesSpec
@@ -335,7 +335,9 @@ def record_names(file_defs):
335335
336336class FileBuilder :
337337 def unicode_filename (self ):
338- return FS_NONASCII or self .skip ("File system does not support non-ascii." )
338+ return os_helper .FS_NONASCII or self .skip (
339+ "File system does not support non-ascii."
340+ )
339341
340342
341343def DALS (str ):
Original file line number Diff line number Diff line change 1+ import types
2+
3+ from jaraco .collections import Projection
4+
5+
6+ def from_test_support (* names ):
7+ """
8+ Return a SimpleNamespace of names from test.support.
9+ """
10+ import test .support
11+
12+ return types .SimpleNamespace (** Projection (names , vars (test .support )))
13+
14+
115try :
2- from test .support . os_helper import FS_NONASCII
16+ from test .support import os_helper # type: ignore
317except ImportError :
4- from test . support import FS_NONASCII # noqa
18+ os_helper = from_test_support ( ' FS_NONASCII' , 'skip_unless_symlink' )
Original file line number Diff line number Diff line change 55import importlib
66import importlib_metadata
77import contextlib
8- from test . support import os_helper
8+ from . py39compat import os_helper
99
1010import pyfakefs .fake_filesystem_unittest as ffs
1111
You can’t perform that action at this time.
0 commit comments