mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-26 00:29:08 -04:00
Filter test output with LibreSSL related warnings on OpenBSD
We do not want that urllib spoils test output with LibreSSL related warnings on OpenBSD. `NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 3.8.2'`.
This commit is contained in:
parent
1003ba9762
commit
fa2aa5f5bd
1 changed files with 6 additions and 0 deletions
|
|
@ -44,6 +44,12 @@ configured = False
|
|||
# warnings.filterwarnings('ignore', r'... regex for warning message to ignore ...')
|
||||
|
||||
|
||||
# we do not want that urllib spoils test output with LibreSSL related warnings on OpenBSD.
|
||||
# NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+,
|
||||
# currently the 'ssl' module is compiled with 'LibreSSL 3.8.2'.
|
||||
warnings.filterwarnings("ignore", message=r".*urllib3 v2 only supports OpenSSL.*")
|
||||
|
||||
|
||||
def _log_warning(message, category, filename, lineno, file=None, line=None):
|
||||
# for warnings, we just want to use the logging system, not stderr or other files
|
||||
msg = f"{filename}:{lineno}: {category.__name__}: {message}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue