mirror of https://github.com/progval/irctest.git
remove psutil
This commit is contained in:
parent
a14ebf9ec2
commit
d7c231ba9e
|
@ -4,7 +4,6 @@ import socket
|
|||
import tempfile
|
||||
import time
|
||||
import subprocess
|
||||
import psutil
|
||||
|
||||
from .runner import NotImplementedByController
|
||||
|
||||
|
@ -84,7 +83,9 @@ class BaseServerController(_BaseController):
|
|||
def wait_for_port(self):
|
||||
while not self.port_open:
|
||||
time.sleep(0.1)
|
||||
for conn in psutil.Process(self.proc.pid).connections():
|
||||
if conn.laddr[1] == self.port:
|
||||
self.port_open = True
|
||||
|
||||
try:
|
||||
c = socket.create_connection(('localhost', self.port), timeout=1.0)
|
||||
c.close()
|
||||
self.port_open = True
|
||||
except Exception as e:
|
||||
continue
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
psutil >= 3.1.0 # Fixes #640
|
Loading…
Reference in New Issue