Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Use self.proc.communicate() after killing mitmdump.

Andrey Rakhmatullin4b0cdf7f3ed9
diff --git a/tests/test_proxy_connect.py b/tests/test_proxy_connect.py
index ec3f0716c..69925f80c 100644
--- a/tests/test_proxy_connect.py
+++ b/tests/test_proxy_connect.py
@@ -48,8 +48,7 @@ sys.exit(mitmdump())
def stop(self):
self.proc.kill()
- self.proc.wait()
- time.sleep(0.2)
+ self.proc.communicate()
def _wrong_credentials(proxy_url):