Skip to content

Commit 6642260

Browse files
committed
Unmark flaky tests
1 parent cef3013 commit 6642260

File tree

5 files changed

+0
-24
lines changed

5 files changed

+0
-24
lines changed

tests/test_debugger.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22

33
import pytest
4-
from flaky import flaky
54

65
from .utils import TIMEOUT, get_reply, new_kernel
76

@@ -74,7 +73,6 @@ def kernel_with_debug(kernel):
7473
wait_for_debug_request(kernel, "disconnect", {"restart": False, "terminateDebuggee": True})
7574

7675

77-
@flaky(max_runs=3)
7876
def test_debug_initialize(kernel):
7977
reply = wait_for_debug_request(
8078
kernel,
@@ -168,7 +166,6 @@ def func(b):
168166
assert r == {}
169167

170168

171-
@flaky(max_runs=3)
172169
def test_stop_on_breakpoint(kernel_with_debug):
173170
code = """def f(a, b):
174171
c = a + b
@@ -211,7 +208,6 @@ def test_stop_on_breakpoint(kernel_with_debug):
211208
assert msg["content"]["body"]["reason"] == "breakpoint"
212209

213210

214-
@flaky(max_runs=3)
215211
def test_breakpoint_in_cell_with_leading_empty_lines(kernel_with_debug):
216212
code = """
217213
def f(a, b):
@@ -255,7 +251,6 @@ def f(a, b):
255251
assert msg["content"]["body"]["reason"] == "breakpoint"
256252

257253

258-
@flaky(max_runs=3)
259254
def test_rich_inspect_not_at_breakpoint(kernel_with_debug):
260255
var_name = "text"
261256
value = "Hello the world"
@@ -288,7 +283,6 @@ def func(v):
288283
assert reply == {}
289284

290285

291-
@flaky(max_runs=3)
292286
def test_rich_inspect_at_breakpoint(kernel_with_debug):
293287
code = """def f(a, b):
294288
c = a + b

tests/test_eventloop.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import time
88

99
import pytest
10-
from flaky import flaky
1110

1211
from ipykernel.eventloops import (
1312
enable_gui,
@@ -58,7 +57,6 @@ def _setup_env():
5857
windows_skip = pytest.mark.skipif(os.name == "nt", reason="causing failures on windows")
5958

6059

61-
@flaky(max_runs=3)
6260
@windows_skip
6361
@pytest.mark.skipif(sys.platform == "darwin", reason="hangs on macos")
6462
def test_tk_loop(kernel):
@@ -80,7 +78,6 @@ def do_thing():
8078
t.join()
8179

8280

83-
@flaky(max_runs=3)
8481
@windows_skip
8582
@pytest.mark.parametrize("anyio_backend", ["asyncio"])
8683
def test_asyncio_loop(kernel):
@@ -97,13 +94,11 @@ def test_enable_gui(kernel):
9794
enable_gui("tk", kernel)
9895

9996

100-
@flaky(max_runs=3)
10197
@pytest.mark.skipif(sys.platform != "darwin", reason="MacOS-only")
10298
def test_cocoa_loop(kernel):
10399
loop_cocoa(kernel)
104100

105101

106-
@flaky(max_runs=3)
107102
@pytest.mark.parametrize("gui", qt_guis_avail)
108103
def test_qt_enable_gui(gui, kernel, capsys):
109104
if os.getenv("GITHUB_ACTIONS", None) == "true" and gui == "qt5":

tests/test_io.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import zmq
1515
import zmq_anyio
1616
from anyio import create_task_group
17-
from flaky import flaky
1817
from jupyter_client.session import Session
1918

2019
from ipykernel.iostream import _PARENT, BackgroundSocket, IOPubThread, OutStream
@@ -102,7 +101,6 @@ async def test_background_socket(iopub_thread):
102101
sock.send(b"hi")
103102

104103

105-
@flaky(max_runs=3)
106104
async def test_outstream(iopub_thread):
107105
session = Session()
108106
pub = iopub_thread.socket

tests/test_kernel.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def _check_status(content):
4949
# printing tests
5050

5151

52-
@flaky(max_runs=3)
5352
def test_simple_print():
5453
"""simple print statement in kernel"""
5554
with kernel() as kc:
@@ -200,7 +199,6 @@ def test_sys_path():
200199
assert "" in sys_path
201200

202201

203-
@flaky(max_runs=3)
204202
def test_sys_path_profile_dir():
205203
"""test that sys.path doesn't get messed up when `--profile-dir` is specified"""
206204

@@ -558,7 +556,6 @@ def test_interrupt_during_pdb_set_trace():
558556
validate_message(reply, "execute_reply", msg_id2)
559557

560558

561-
@flaky(max_runs=3)
562559
def test_control_thread_priority():
563560
N = 5
564561
with new_kernel() as kc:
@@ -603,7 +600,6 @@ def test_control_thread_priority():
603600
assert control_dates[-1] <= shell_dates[0]
604601

605602

606-
@flaky(max_runs=3)
607603
def test_sequential_control_messages():
608604
with new_kernel() as kc:
609605
msg_id = kc.execute("import time")

tests/test_subshells.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from datetime import datetime, timedelta
1010

1111
import pytest
12-
from flaky import flaky
1312
from jupyter_client.blocking.client import BlockingKernelClient
1413

1514
from .utils import TIMEOUT, get_replies, get_reply, new_kernel
@@ -76,7 +75,6 @@ def execute_thread_ids(kc: BlockingKernelClient, subshell_id: str | None = None)
7675
# Tests
7776

7877

79-
@flaky(max_runs=3)
8078
def test_supported():
8179
with new_kernel() as kc:
8280
msg_id = kc.kernel_info()
@@ -85,7 +83,6 @@ def test_supported():
8583
assert "kernel subshells" in reply["content"]["supported_features"]
8684

8785

88-
@flaky(max_runs=3)
8986
def test_subshell_id_lifetime():
9087
with new_kernel() as kc:
9188
assert list_subshell_helper(kc)["subshell_id"] == []
@@ -102,7 +99,6 @@ def test_delete_non_existent():
10299
assert "evalue" in reply
103100

104101

105-
@flaky(max_runs=3)
106102
def test_thread_counts():
107103
with new_kernel() as kc:
108104
nthreads = execute_thread_count(kc)
@@ -176,7 +172,6 @@ def test_run_concurrently_sequence(are_subshells, overlap):
176172
assert reply["content"]["status"] == "ok", reply
177173

178174

179-
@flaky(max_runs=3)
180175
@pytest.mark.parametrize("include_main_shell", [True, False])
181176
def test_run_concurrently_timing(include_main_shell):
182177
with new_kernel() as kc:
@@ -256,7 +251,6 @@ def test_execution_count():
256251
assert execution_counts == [ec, ec - 1, ec + 2, ec + 1]
257252

258253

259-
@flaky(max_runs=3)
260254
def test_create_while_execute():
261255
with new_kernel() as kc:
262256
# Send request to execute code on main subshell.
@@ -278,7 +272,6 @@ def test_create_while_execute():
278272
assert control_date < shell_date
279273

280274

281-
@flaky(max_runs=3)
282275
@pytest.mark.skipif(
283276
platform.python_implementation() == "PyPy",
284277
reason="does not work on PyPy",

0 commit comments

Comments
 (0)