Skip to content

Commit

Permalink
tests: Fix glob matching
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Mar 26, 2024
1 parent f671e99 commit 0b22011
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/end2end/fixtures/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
import json
import pathlib
import socket
import fnmatch
import dataclasses
from http import HTTPStatus

import pytest
from qutebrowser.qt.core import pyqtSignal, QUrl

from end2end.fixtures import testprocess
from helpers import testutils


class Request(testprocess.Line):
Expand Down Expand Up @@ -113,13 +113,13 @@ def __eq__(self, other):


def is_ignored_webserver_message(line: str) -> bool:
return fnmatch.fnmatchcase(
line,
(
return testutils.pattern_match(
pattern=(
"Client ('127.0.0.1', *) lost — peer dropped the TLS connection suddenly, "
"during handshake: (1, '[SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] ssl/tls "
"alert certificate unknown (_ssl.c:*)')"
)
),
value=line,
)


Expand Down

0 comments on commit 0b22011

Please sign in to comment.