We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e1bfe2 commit f83ef8aCopy full SHA for f83ef8a
tests/python/test_event_loop.py
@@ -273,7 +273,8 @@ async def c():
273
assert "nested" == await pm.eval("(promise) => promise")(c())
274
assert "nested" == await pm.eval("(promise) => promise")(await c())
275
assert "nested" == await pm.eval("(promise) => promise")(await (await c()))
276
- with pytest.raises(TypeError, match="object str can't be used in 'await' expression"):
+ with pytest.raises(TypeError, match="(object str can't be used in 'await' expression)|('str' object can't be awaited)"):
277
+ # Python 3.14 changed the error message format
278
await pm.eval("(promise) => promise")(await (await (await c())))
279
280
# Python awaitable throwing exceptions
0 commit comments