Skip to content

Commit

Permalink
Fix test on python 3.12
Browse files Browse the repository at this point in the history
Builtin exception string format has changed
  • Loading branch information
nyalldawson committed Oct 19, 2023
1 parent 9bbae4c commit 07f46cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsexpression.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,10 @@ def testExceptionDuringEvalReturnsTraceback(self):
"name 'foo' is not defined:<pre>Traceback \\(most recent call last\\):\n"
" File \".*qgsfunction.py\", line [0-9]+, in func\n"
" return self.function\\(\\*values, \\*\\*kwvalues\\)\n"
"(.*?\n)?"
" File \".*test_qgsexpression.py\", line [0-9]+, in raise_exception\n"
" foo # noqa: F821\n"
"(.*?\n)?"
"NameError: name \'foo\' is not defined"
"\n</pre>"
)
Expand Down

0 comments on commit 07f46cf

Please sign in to comment.