У меня есть SocketServer, чтобы запустить некоторые единомышленники, и он выводит свой журнал в консоли. < /p>
Есть ли способ отключить это?class TestServer(SocketServer.TCPServer):
allow_reuse_address = True
class ScraperExampleTest(unittest.TestCase):
def setUp(self):
# Due to requests not supporting the 'file' scheme, we are forced to run
# our own server. See: https://github.com/kennethreitz/requests/issues/847
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = TestServer(('', PORT), Handler)
httpd_thread = threading.Thread(target=httpd.serve_forever)
httpd_thread.setDaemon(True)
httpd_thread.start()
Подробнее здесь: https://stackoverflow.com/questions/165 ... -in-python
Как вы можете отключить вывод SocketServer в Python? ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как вы можете или можете создать и/или «настроить» свойство NSLayoutAnchor?
Anonymous » » в форуме IOS - 0 Ответы
- 48 Просмотры
-
Последнее сообщение Anonymous
-