diff options
author | Jimmy <jimmy@spalge.com> | 2022-04-30 13:29:53 +1200 |
---|---|---|
committer | Jimmy <jimmy@spalge.com> | 2022-04-30 19:30:49 +1200 |
commit | 2341a00fe48afee3fb42ef720c8a786767d8ba31 (patch) | |
tree | a78b9830a5e1e7120b5c219951af9f68138b3b97 | |
parent | 78744d0da7d0146fe5f59e0e454c86cd8b297517 (diff) | |
download | qutebrowser-2341a00fe48afee3fb42ef720c8a786767d8ba31.tar.gz qutebrowser-2341a00fe48afee3fb42ef720c8a786767d8ba31.zip |
fix e2e webkit download message matching
"I open" in the BDD tests can match against a message like this:
01:24:53.227 DEBUG downloads qtnetworkdownloads:fetch:563 fetch: PyQt5.QtCore.QUrl('http://localhost:58917/500-inline') -> attachment.jpg
The QUrl class name there still references the specific PyQt module, so
make the match expression less specific.
Similar to 36763864 for the scroll position e2e tests.
Caused by the regex rename in 80033f466f96a
-rw-r--r-- | tests/end2end/fixtures/quteprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index b7ea27664..338d00e4b 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -854,7 +854,7 @@ class QuteProc(testprocess.Process): pattern = re.compile( r"(load status for <qutebrowser\.browser\..* " r"tab_id=\d+ url='{url}/?'>: LoadStatus\.{load_status}|fetch: " - r"qutebrowser.qt\.QtCore\.QUrl\('{url}'\) -> .*)".format( + r".*.QtCore\.QUrl\('{url}'\) -> .*)".format( load_status=re.escape(load_status), url=re.escape(url))) try: |