File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020
2121from tests import utils
2222
23- # TODO: Remove case handling when fully dropping support for versions >= 3.6
24- IS_PY_VERSION_SUPPORTED = sys .version_info >= (3 , 6 )
25-
26- # Use setUpModule to tell unittest runner to skip this test module gracefully.
27- def setUpModule ():
28- if not IS_PY_VERSION_SUPPORTED :
29- raise unittest .SkipTest ('requires Python 3.6 or higher' )
30-
31- # Since setUpModule is called after imports we need to import conditionally.
32- if IS_PY_VERSION_SUPPORTED :
33- import tuf .exceptions
34- from tuf .api .metadata import (
35- Metadata ,
36- Snapshot ,
37- Timestamp ,
38- Targets
39- )
40-
41- from securesystemslib .interface import (
42- import_ed25519_publickey_from_file ,
43- import_ed25519_privatekey_from_file
44- )
45-
46- from securesystemslib .keys import (
47- format_keyval_to_metadata
48- )
23+ import tuf .exceptions
24+ from tuf .api .metadata import (
25+ Metadata ,
26+ Snapshot ,
27+ Timestamp ,
28+ Targets
29+ )
30+
31+ from securesystemslib .interface import (
32+ import_ed25519_publickey_from_file ,
33+ import_ed25519_privatekey_from_file
34+ )
35+
36+ from securesystemslib .keys import (
37+ format_keyval_to_metadata
38+ )
4939
5040logger = logging .getLogger (__name__ )
5141
You can’t perform that action at this time.
0 commit comments