diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d73c9d8..c730f117 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,7 +131,7 @@ jobs: - name: Run the tests timeout-minutes: 10 - run: pytest -k test_enter_eventloop -W default -vv || pytest -k test_enter_eventloop --vv -W default --lf + run: pytest -W default -vv || pytest --vv -W default --lf test_miniumum_versions: name: Test Minimum Versions diff --git a/ipykernel/kernelbase.py b/ipykernel/kernelbase.py index 16d4de0f..a4ece099 100644 --- a/ipykernel/kernelbase.py +++ b/ipykernel/kernelbase.py @@ -455,7 +455,6 @@ def advance_eventloop(): return self.log.debug("Advancing eventloop %s", eventloop) try: - foo eventloop(self) except KeyboardInterrupt: # Ctrl-C shouldn't crash the kernel diff --git a/ipykernel/tests/test_kernel_direct.py b/ipykernel/tests/test_kernel_direct.py index b0a09a86..f75d8b6d 100644 --- a/ipykernel/tests/test_kernel_direct.py +++ b/ipykernel/tests/test_kernel_direct.py @@ -132,27 +132,6 @@ def __init__(self, bytes): await kernel.dispatch_shell(msg) -async def test_enter_eventloop(kernel): - kernel.eventloop = None - kernel.enter_eventloop() - kernel.eventloop = asyncio.get_running_loop() - kernel.enter_eventloop() - called = 0 - - def check_status(): - nonlocal called - if called == 0: - msg = kernel.session.msg("debug_request", {}) - kernel.msg_queue.put(msg) - called += 1 - kernel.io_loop.call_later(0.001, check_status) - - kernel.io_loop.call_later(0.001, check_status) - kernel.start() - while called < 2: - await asyncio.sleep(0.1) - - async def test_do_one_iteration(kernel): kernel.msg_queue = asyncio.Queue() await kernel.do_one_iteration()