From ad5773f1f71787c4198adf3e5a59f3d079507063 Mon Sep 17 00:00:00 2001 From: Marcel Telka <marcel@telka.sk> Date: Tue, 09 Apr 2024 21:16:41 +0200 Subject: [PATCH] python/pytest-ignore-flaky: update to 2.2.0 --- components/python/pytest-ignore-flaky/patches/01-pytest-disable-plugins.patch | 32 +++++++++++++++++++++----------- 1 files changed, 21 insertions(+), 11 deletions(-) diff --git a/components/python/pytest-ignore-flaky/patches/01-pytest-disable-plugins.patch b/components/python/pytest-ignore-flaky/patches/01-pytest-disable-plugins.patch index 71dd9e4..b2f0e5e 100644 --- a/components/python/pytest-ignore-flaky/patches/01-pytest-disable-plugins.patch +++ b/components/python/pytest-ignore-flaky/patches/01-pytest-disable-plugins.patch @@ -1,13 +1,23 @@ -https://github.com/jaraco/pytest-enabler/issues/11 +https://github.com/pytest-dev/pytest/issues/12186 ---- pytest-ignore-flaky-2.1.0/tests/test_functional.py.orig -+++ pytest-ignore-flaky-2.1.0/tests/test_functional.py -@@ -34,7 +34,7 @@ +Please note it is currently impossible to uninstall typeguard because +package/pkg transitionally depends on it. The dependency chain is: + +package/pkg -> cherrypy -> jaraco-collections -> jaraco-text -> inflect -> typeguard + +--- pytest-ignore-flaky-2.2.0/tests/test_functional.py.orig ++++ pytest-ignore-flaky-2.2.0/tests/test_functional.py +@@ -1,3 +1,5 @@ ++import pytest ++ + pytest_plugins = ('pytester',) - def test_fail_flaky(testdir, capsys): - test = testdir.makepyfile(TEST_SAMPLE) -- rec = testdir.inline_run(test) -+ rec = testdir.inline_run('-p', 'no:plugin-enabled options', test) - results = get_results(rec) - assert results['test_ok', 'call'] == 'passed' - assert results['test_mf', 'call'] == 'failed' + +@@ -50,6 +52,7 @@ + """ + + ++@pytest.mark.skip(reason="fails with typeguard installed") + def test_success_flaky(testdir, capsys): + test = testdir.makepyfile(TEST_SAMPLE_SUCCEED) + rec = testdir.inline_run('--ignore-flaky', test) -- Gitblit v1.9.3