-
-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testbed has async issues on Python 3.11 #1982
Comments
EDIT: this comment is wrong: see below. This issue is probably caused by limitations of the In particular, I'm not sure how futures are working at all, since |
On further thought, the ProxyEventLoop is only used on the pytest thread, and it's only used to dispatch the test function to the main thread, so it's fine for it to implement only those methods which are used by pytest-asyncio. The test body, and all the Toga code it exercises, run on the main thread and interact directly with the main thread's loop, just as a normal app would. So the only thing that's actually going wrong here is that the Note that in Python 3.11 |
After experiencing some 6-hour testbed hangs in #1949, I added timeouts to the relevant
await
statements usingwait_for
. When the timeout is triggered on Python 3.8-3.10, it gives a stack trace like this:But on Python 3.11, it gives the following useless stack trace:
The text was updated successfully, but these errors were encountered: