Skip to content

Commit 6c0717f

Browse files
committed
test: fix match when 3.15 produces better diagnostic.
Don't match exact ValueError, 3.15 produces: 'stray % at position 12' while earlier versions reported: 'incomplete format' So verify message up to ValueError only.
1 parent aad9408 commit 6c0717f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/test_cgi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3714,8 +3714,7 @@ def testExpandfile(self):
37143714
r"^Found an incorrect token when expandfile applied "
37153715
r"string subsitution on "
37163716
r"'[^']*[\\/]_test_template[\\/]html[\\/]file_with_broken_expand_type.js'. "
3717-
r"ValueError\('incomplete format'\) was raised. Check the format "
3718-
r"of your named conversion specifiers."))
3717+
r"ValueError"))
37193718
self._caplog.clear()
37203719
r = None
37213720

0 commit comments

Comments
 (0)