Scrapy, a fast high-level web crawling & scraping framework for Python.
Remove a 'twisted.test.proto_helpers' deprecation warning
nyov915e363db5cb
diff --git a/tests/test_webclient.py b/tests/test_webclient.pyindex 99a998a46..6253d5c3f 100644--- a/tests/test_webclient.py+++ b/tests/test_webclient.py@@ -9,7 +9,12 @@ import OpenSSL.SSLfrom twisted.trial import unittestfrom twisted.web import server, static, util, resourcefrom twisted.internet import reactor, defer-from twisted.test.proto_helpers import StringTransport+try:+ from twisted.internet.testing import StringTransport+except ImportError:+ # deprecated in Twisted 19.7.0+ # (remove once we bump our requirement past that version)+ from twisted.test.proto_helpers import StringTransportfrom twisted.python.filepath import FilePathfrom twisted.protocols.policies import WrappingFactoryfrom twisted.internet.defer import inlineCallbacks