bdd: Fix regex escape.

The . chars weren't properly escaped.
This commit is contained in:
Florian Bruhin 2016-01-06 22:59:05 +01:00
parent 7dc03710b1
commit 916b294976

View File

@ -291,9 +291,9 @@ class QuteProc(testprocess.Process):
# __repr__
url = utils.elide(QUrl(url).toDisplayString(QUrl.EncodeUnicode), 100)
pattern = re.compile(
r"(load status for <qutebrowser.browser.webview.WebView "
r"tab_id=\d+ url='{url}'>: LoadStatus.success|fetch: "
r"PyQt5.QtCore.QUrl\('{url}'\) -> .*)".format(url=re.escape(url)))
r"(load status for <qutebrowser\.browser\.webview\.WebView "
r"tab_id=\d+ url='{url}'>: LoadStatus\.success|fetch: "
r"PyQt5\.QtCore\.QUrl\('{url}'\) -> .*)".format(url=re.escape(url)))
self.wait_for(message=pattern, timeout=timeout)
def get_session(self):