mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 01:04:05 +00:00
Use communicate() instead of wait() after killing the mock server (#4095)
This commit is contained in:
parent
15c55d0c1d
commit
f02c3d1dcf
@ -206,8 +206,7 @@ class MockServer():
|
|||||||
|
|
||||||
def __exit__(self, exc_type, exc_value, traceback):
|
def __exit__(self, exc_type, exc_value, traceback):
|
||||||
self.proc.kill()
|
self.proc.kill()
|
||||||
self.proc.wait()
|
self.proc.communicate()
|
||||||
time.sleep(0.2)
|
|
||||||
|
|
||||||
def url(self, path, is_secure=False):
|
def url(self, path, is_secure=False):
|
||||||
host = self.http_address.replace('0.0.0.0', '127.0.0.1')
|
host = self.http_address.replace('0.0.0.0', '127.0.0.1')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user