99from datetime import datetime , timedelta
1010
1111import pytest
12- from flaky import flaky
1312from jupyter_client .blocking .client import BlockingKernelClient
1413
1514from .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 )
8078def 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 )
8986def 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 )
106102def 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 ])
181176def 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 )
260254def 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