mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-02-07 08:46:30 +01:00
fix
This commit is contained in:
parent
4b3fd5f833
commit
a0ca9dc2e4
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,6 @@ import contextlib
|
||||||
import functools
|
import functools
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import platform
|
|
||||||
import random
|
import random
|
||||||
import ssl
|
import ssl
|
||||||
import threading
|
import threading
|
||||||
|
@ -241,9 +240,11 @@ def proxy_server(proxy_server_class, request_handler, bind_ip=None, **proxy_serv
|
||||||
yield f'{bind_address}:{server_port}'
|
yield f'{bind_address}:{server_port}'
|
||||||
finally:
|
finally:
|
||||||
server.shutdown()
|
server.shutdown()
|
||||||
|
server.server_close()
|
||||||
server_thread.join()
|
server_thread.join()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class HTTPProxyTestContext(abc.ABC):
|
class HTTPProxyTestContext(abc.ABC):
|
||||||
REQUEST_HANDLER_CLASS = None
|
REQUEST_HANDLER_CLASS = None
|
||||||
REQUEST_PROTO = None
|
REQUEST_PROTO = None
|
||||||
|
|
Loading…
Add table
Reference in a new issue