You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseException('Unable to import module websockify. Run "python3 -m pip install websockify" or set environment variable EMTEST_SKIP_PYTHON_DEV_PACKAGES=1 to skip this test.') fromNone
82
+
78
83
# compile the server
79
84
# NOTE empty filename support is a hack to support
80
85
# the current test_enet
@@ -85,11 +90,6 @@ def __enter__(self):
85
90
process=Popen([os.path.abspath('server')])
86
91
self.processes.append(process)
87
92
88
-
try:
89
-
importwebsockify# type: ignore # noqa: PLC0415
90
-
exceptModuleNotFoundError:
91
-
raiseException('Unable to import module websockify. Run "python3 -m pip install websockify" or set environment variable EMTEST_SKIP_PYTHON_DEV_PACKAGES=1 to skip this test.') fromNone
92
-
93
93
# start the websocket proxy
94
94
print('running websockify on %d, forward to tcp %d'% (self.listen_port, self.target_port), file=sys.stderr)
95
95
# source_is_ipv6=True here signals to websockify that it should prefer ipv6 address when
@@ -111,6 +111,7 @@ def __enter__(self):
111
111
exceptOSError:
112
112
time.sleep(1)
113
113
else:
114
+
self.clean_processes()
114
115
raiseException('[Websockify failed to start up in a timely manner]')
115
116
116
117
print('[Websockify on process %s]'%str(self.processes[-2:]))
0 commit comments