mirror of https://github.com/scrapy/scrapy.git
Fix running simple tests with --reactor=default. (#6735)
This commit is contained in:
parent
9057bf4e1e
commit
8729247213
|
|
@ -119,6 +119,9 @@ def requires_boto3(request):
|
|||
def pytest_configure(config):
|
||||
if config.getoption("--reactor") != "default":
|
||||
install_reactor("twisted.internet.asyncioreactor.AsyncioSelectorReactor")
|
||||
else:
|
||||
# install the reactor explicitly
|
||||
from twisted.internet import reactor # noqa: F401
|
||||
|
||||
|
||||
# Generate localhost certificate files, needed by some tests
|
||||
|
|
|
|||
Loading…
Reference in New Issue