From fcc987ac717d85bfdb721626c30dc532e900fccc Mon Sep 17 00:00:00 2001 From: FMasson <97910143+Zybulon@users.noreply.github.com> Date: Sun, 22 Sep 2024 10:27:58 +0200 Subject: [PATCH] trying not to use flaky --- spyder_terminal/tests/test_terminal.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/spyder_terminal/tests/test_terminal.py b/spyder_terminal/tests/test_terminal.py index 23b853a0..acb2657c 100644 --- a/spyder_terminal/tests/test_terminal.py +++ b/spyder_terminal/tests/test_terminal.py @@ -173,10 +173,9 @@ def teardown(): return terminal -@flaky(max_runs=3) @pytest.mark.skipif((os.environ.get('CI') and - sys.platform.startswith('linux')), - reason="Doesn't work on Linux CIs") + (sys.platform.startswith('linux')) or WINDOWS), + reason="Doesn't work on Linux and Windows CIs") def test_terminal_paste_1(setup_terminal, qtbot_module): """Test the paste action in the terminal.""" terminal = setup_terminal @@ -201,9 +200,8 @@ def test_terminal_paste_1(setup_terminal, qtbot_module): timeout=TERM_UP) -@flaky(max_runs=3) @pytest.mark.skipif((os.environ.get('CI') and - sys.platform.startswith('linux')), + sys.platform.startswith('linux'), reason="Doesn't work on Linux CIs") def test_terminal_paste_2(setup_terminal, qtbot_module): """Test the paste action in the terminal.""" @@ -325,7 +323,6 @@ def test_terminal_tab_title(setup_terminal, qtbot_module): assert num_2 == num_1 + 1 -@flaky(max_runs=3) def test_new_terminal(setup_terminal, qtbot_module): """Test if a new terminal is added.""" # Setup widget