-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Set WindowsSelectorEventLoopPolicy on Windows. #5315
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5315 +/- ##
==========================================
- Coverage 88.59% 88.56% -0.04%
==========================================
Files 163 163
Lines 10619 10624 +5
Branches 1807 1809 +2
==========================================
+ Hits 9408 9409 +1
- Misses 936 939 +3
- Partials 275 276 +1
|
Tests that hang on old Twisted because of https://twistedmatrix.com/trac/ticket/9390 also hang on Windows with these changes, I need to investigate the reason. |
Looks like there are several tests getting 100% reproducible unclean reactor problems only on windows-3.10-asyncio. |
I've filed https://twistedmatrix.com/trac/ticket/10279 and skipped those tests. |
Closes: #4976
Needs fixing tests that expect a default loop to be used, and adding docs, including manual setting for CrawlerProcess/Runner in https://docs.scrapy.org/en/latest/topics/asyncio.html#installing-the-asyncio-reactor