Skip to content

Commit ab86b6c

Browse files
committed
Remove redundant test - CI on Python 3.14 is sufficient
1 parent cfc886b commit ab86b6c

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

adaptive/tests/test_runner.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
import platform
32
import sys
43
import time
@@ -264,26 +263,3 @@ def counting_ask(self, n, tell_pending=True):
264263
finally:
265264
# Restore original method
266265
Learner1D.ask = original_ask
267-
268-
269-
def test_async_runner_without_running_event_loop():
270-
"""Test that AsyncRunner works when no event loop is running.
271-
272-
In Python 3.10+, asyncio.get_event_loop() was deprecated when no running
273-
event loop exists. In Python 3.12+ it emits a DeprecationWarning, and in
274-
Python 3.14+ it raises a RuntimeError.
275-
276-
This test ensures AsyncRunner properly handles the case when no event
277-
loop is running by creating one.
278-
279-
Regression test for: https://github.com/python-adaptive/adaptive/issues/489
280-
"""
281-
# Ensure no event loop is currently running
282-
with pytest.raises(RuntimeError, match="no running event loop"):
283-
asyncio.get_running_loop()
284-
285-
# AsyncRunner should still work - it should create its own event loop
286-
learner = Learner1D(linear, (-1, 1))
287-
runner = AsyncRunner(learner, npoints_goal=10, executor=SequentialExecutor())
288-
runner.block_until_done()
289-
assert learner.npoints >= 10

0 commit comments

Comments
 (0)