Skip to content

Commit 2ecd92a

Browse files
committed
tests: remove check for python >= 3.6 in test_api
Signed-off-by: Joshua Lock <jlock@vmware.com>
1 parent a5ebea8 commit 2ecd92a

1 file changed

Lines changed: 16 additions & 26 deletions

File tree

tests/test_api.py

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,22 @@
2020

2121
from 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

5040
logger = logging.getLogger(__name__)
5141

0 commit comments

Comments
 (0)