blob: 797bf25d1ae858460d79df34f32bae20a01c9bd8 [file] [log] [blame]
Denis Mingulov3113df82023-09-26 21:20:39 +03001# SPDX-License-Identifier: Apache-2.0
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import pytest
16
17# List of tests expected to fail for some reason
18XFAILED_TESTS = {
19 "tests/test_keys.py::test_getpriv[openssl-ed25519]",
20 "tests/test_keys.py::test_getpriv[openssl-x25519]",
21 "tests/test_keys.py::test_getpriv[pkcs8-rsa-2048]",
22 "tests/test_keys.py::test_getpriv[pkcs8-rsa-3072]",
23 "tests/test_keys.py::test_getpriv[pkcs8-ed25519]",
24 "tests/test_keys.py::test_getpub[pem-ed25519]",
25 "tests/test_keys.py::test_sign_verify[x25519]",
26}
27
28
29def pytest_runtest_setup(item):
30 if item.nodeid in XFAILED_TESTS:
31 pytest.xfail()