Skip to content

Commit d17d4af

Browse files
committed
fix a few markers
1 parent 9dfa6bd commit d17d4af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def pytest_collection_modifyitems(items) -> None:
4242
IS_SOFTHSM, reason="Expected failure with SoftHSMvs.", strict=True
4343
)
4444
)
45-
if "xfail_opencryptoki" in markers:
45+
if "xfail_opencryptoki" in markers and IS_OPENCRYPTOKI:
4646
item.add_marker(
4747
pytest.mark.xfail(
4848
IS_OPENCRYPTOKI, reason="Expected failure with OpenCryptoki.", strict=True

tests/test_sessions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_destroy_object(token: pkcs11.Token, pin: str) -> None:
110110
assert list(session.get_objects()) == []
111111

112112

113-
@pytest.mark.skipif(IS_NFAST, reason="nFast won't destroy objects.")
113+
@pytest.mark.skipif(not IS_SOFTHSM, reason="Unknown reason.")
114114
def test_copy_object(token: pkcs11.Token, pin: str) -> None:
115115
with token.open(user_pin=pin) as session:
116116
key = session.generate_key(pkcs11.KeyType.AES, 128, label="SAMPLE KEY")

0 commit comments

Comments
 (0)