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 23, 2023
1 parent a1f9039 commit 0550941
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsexpression.py
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 0550941

Please sign in to comment.