-
Notifications
You must be signed in to change notification settings - Fork 38.1k
qa: Fix "RuntimeError: Event loop is closed" on Windows #22987
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
Conversation
|
In master we still require a minimum Python version of 3.6. From what I can see, |
Right. Would it be sufficient to update our docs and specifically for Windows users mention that they are required to install Python 3.8+ ? Or add a version check? |
|
This should be fine. Python doesn't care about unexecuted code. I am running python3.6 on my machine with the following diff and everything passed: diff --git a/test/functional/test_framework/p2p.py b/test/functional/test_framework/p2p.py
index ec563cc290..1cf23ef191 100755
--- a/test/functional/test_framework/p2p.py
+++ b/test/functional/test_framework/p2p.py
@@ -578,7 +578,7 @@ class NetworkThread(threading.Thread):
NetworkThread.listeners = {}
NetworkThread.protos = {}
if sys.platform == 'win32':
- asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
+ asyncio.foo_bar(asyncio.FooBar())
NetworkThread.network_event_loop = asyncio.new_event_loop()
def run(self):Again, I don't think anyone of our users is running the functional tests on windows, so it seems odd to even think about spending time to support running them on older versions of python. |
|
review ACK 357f0c7 🌆 Show signature and timestampSignature: Timestamp of file with hash |
|
I reset the ci run 4 times, all times it did pass. Would be good to merge this before the std::fs refactor, so that it has better test coverage. |
Sure. However I do care about implicit / undocumented dependency changes. At a minimum the commit / PR description should mention the change in requirements. |
|
The PR description links to "what is new in Python 3.7". Is there anything else it can say? |
Link to / mention the actual minimum requirement, which is 3.8? |
Added. |
357f0c7 ci: Enable more functional tests on Windows MSVC task (Hennadii Stepanov) f559326 qa: Fix "RuntimeError: Event loop is closed" on Windows (Hennadii Stepanov) Pull request description: On master (2161a05), running functional tests that use the P2P interface ends with an error: ``` RuntimeError: Event loop is closed ``` This PR fixes this bug, and enables more functional tests on Windows MSVC CI task. More details about bugfix: - [What’s New In Python 3.7](https://docs.python.org/3/whatsnew/3.7.html#asyncio) - https://bugs.python.org/issue33792 - actual [change](https://docs.python.org/3.8/library/asyncio-policy.html#asyncio.WindowsSelectorEventLoopPolicy) done in Python 3.8 Excluded tests, that are listed in the `EXCLUDE_TESTS` environment variable, need more thorough investigation to be enabled. ACKs for top commit: MarcoFalke: review ACK 357f0c7 🌆 Tree-SHA512: d0ba85be81d55c934959ce7402a9c726598125e9751a1de179d16759d0e8b8a915de879c3a62c12d3564c5e0d9649ebd86963744449626efaa42d9eaa99ad3d0
|
This has been merged. |
On master (2161a05), running functional tests that use the P2P interface ends with an error:
This PR fixes this bug, and enables more functional tests on Windows MSVC CI task.
More details about bugfix:
Excluded tests, that are listed in the
EXCLUDE_TESTSenvironment variable, need more thorough investigation to be enabled.