[PATCH] D68988: [LNT] Python 3 support: adapt regex for div by 0 msg

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 04:11:26 PST 2019


thopre updated this revision to Diff 232306.
thopre added a comment.

Rebase earlier


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68988/new/

https://reviews.llvm.org/D68988

Files:
  tests/server/ui/V4Pages.py


Index: tests/server/ui/V4Pages.py
===================================================================
--- tests/server/ui/V4Pages.py
+++ tests/server/ui/V4Pages.py
@@ -636,7 +636,7 @@
     check_json(client, '/db_default/v4/nts/graph?switch_min_mean=yes&plot.0=1.3.2&json=true')
     app.testing = False
     error_page = check_html(client, '/explode', expected_code=500)
-    assert "integer division or modulo by zero" in error_page.data
+    assert re.search("division (or modulo )?by zero", error_page.data)
 
     error_page = check_html(client, '/gone', expected_code=404)
     assert "test" in error_page.data


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68988.232306.patch
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191205/5a57d985/attachment.bin>


More information about the llvm-commits mailing list