Attempt to fix `test_proxy_install` (#3324)

Attempt to fix test_proxy_install random failure on CI
This commit is contained in:
Hind-M 2024-07-02 11:15:30 +02:00 committed by GitHub
parent 7f70ac900a
commit a71f63f1e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ from mitmproxy import ctx
from mitmproxy.addonmanager import Loader
from mitmproxy.http import HTTPFlow
import logging
# Asking `passlib` to only log errors to avoid random failure in the CI
# cf. https://github.com/mamba-org/mamba/issues/3323
# and https://github.com/pyca/bcrypt/issues/684
logging.getLogger("passlib").setLevel(logging.ERROR)
class DumpAddon:
def load(self, loader: Loader):