Commit e30a16d 1 parent 41ca039 commit e30a16d Copy full SHA for e30a16d
File tree 2 files changed +5
-17
lines changed
2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ testing =
37
37
pyfakefs
38
38
flufl.flake8
39
39
pytest-perf >= 0.9.2
40
- jaraco.collections
40
+ jaraco.test >= 5.4
41
41
42
42
docs =
43
43
# upstream
Original file line number Diff line number Diff line change 1
- import types
1
+ from jaraco . test . cpython import from_test_support , try_import
2
2
3
- from jaraco .collections import Projection
4
3
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
-
15
- try :
16
- from test .support import os_helper # type: ignore
17
- except ImportError :
18
- os_helper = from_test_support ('FS_NONASCII' , 'skip_unless_symlink' )
4
+ os_helper = try_import ('os_helper' ) or from_test_support (
5
+ 'FS_NONASCII' , 'skip_unless_symlink'
6
+ )
You can’t perform that action at this time.
0 commit comments