From 651bbfe381f3523c4265fff7cac26305a9e4fc55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 24 Jul 2025 11:28:17 +0200 Subject: [PATCH] Replace `@flaky.flaky` decorate with pytest marker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the `@pytest.mark.flaky` marker in place of the `@flaky.flaky` decorator, to modernize the code and improve compatibility with other plugins providing the feature such as `pytest-rerunfailures`. Signed-off-by: Michał Górny --- jupyter_console/tests/test_console.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jupyter_console/tests/test_console.py b/jupyter_console/tests/test_console.py index 83b5ee6..2ac2378 100644 --- a/jupyter_console/tests/test_console.py +++ b/jupyter_console/tests/test_console.py @@ -9,7 +9,6 @@ import tempfile from subprocess import check_output -from flaky import flaky import pytest from traitlets.tests.utils import check_help_all_output @@ -18,7 +17,7 @@ should_skip = sys.platform == "win32" or sys.version_info < (3,8) or sys.version_info[:2] == (3, 10) # noqa -@flaky +@pytest.mark.flaky @pytest.mark.skipif(should_skip, reason="not supported") def test_console_starts(): """test that `jupyter console` starts a terminal""" @@ -33,7 +32,7 @@ def test_help_output(): check_help_all_output('jupyter_console') -@flaky +@pytest.mark.flaky @pytest.mark.skipif(should_skip, reason="not supported") def test_display_text(): "Ensure display protocol plain/text key is supported"