Skip to content

Commit 87eb2eb

Browse files
author
Sylvain MARIE
committed
Fixed RuntimeError in tests when running on pythn 3.14. Added python 3.14 to CI. Fixed #112
1 parent 4573c65 commit 87eb2eb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Folders:
5252

5353

5454
ENVS = {
55-
# PY314: {"coverage": False, "pkg_specs": {"pip": ">19"}},
55+
PY314: {"coverage": False, "pkg_specs": {"pip": ">19"}},
5656
PY313: {"coverage": False, "pkg_specs": {"pip": ">19"}},
5757
PY312: {"coverage": False, "pkg_specs": {"pip": ">19"}},
5858
PY311: {"coverage": False, "pkg_specs": {"pip": ">19"}},

tests/test_generators_coroutines.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def test_native_coroutine():
9292
assert is_native_co(dynamic_fun)
9393

9494
# verify that the new function is a native coroutine and behaves correctly
95-
from asyncio import get_event_loop
96-
out = get_event_loop().run_until_complete(dynamic_fun(0.1))
95+
from asyncio import run
96+
out = run(dynamic_fun(0.1))
9797
assert out == 0.1
9898

9999

@@ -114,6 +114,6 @@ def test_issue_96():
114114
assert is_native_co(dynamic_fun)
115115

116116
# verify that the new function is a native coroutine and behaves correctly
117-
from asyncio import get_event_loop
118-
out = get_event_loop().run_until_complete(dynamic_fun(0.1))
117+
from asyncio import run
118+
out = run(dynamic_fun(0.1))
119119
assert out == 0.1

0 commit comments

Comments
 (0)