From 80405402049051dcb82a300919890db6b6c7de23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Wed, 20 Apr 2022 20:29:07 +0200 Subject: [PATCH] tests: feeling confident about feeling very confident about https://github.com/pytest-dev/pytest/pull/9871 --- tests/test_rtdc_fmt_dcor_access_token.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_rtdc_fmt_dcor_access_token.py b/tests/test_rtdc_fmt_dcor_access_token.py index f46ef35b..c37b3f41 100644 --- a/tests/test_rtdc_fmt_dcor_access_token.py +++ b/tests/test_rtdc_fmt_dcor_access_token.py @@ -1,5 +1,7 @@ import pathlib +import pytest + from dclab.rtdc_dataset import fmt_dcor from dclab.rtdc_dataset.fmt_dcor import access_token @@ -24,6 +26,9 @@ def test_get_hostname(): assert hostname == "dcor.example.com" +# feeling very confident about https://github.com/pytest-dev/pytest/pull/9871 +@pytest.mark.xfail(pytest.version_tuple < (7, 2, 0), + reason="Requires pytest PR #9871 when run with coverage") def test_store_and_get_certificate(tmp_path): cert = access_token.get_certificate( datapath / "example_access_token.dcor-access", "42")