commit b869cf8ddc9ca8d4cb46fd46922773228cfe5404 parent cba2f65ee4dafe3801fa94b771f332fee74422c8 Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> Date: Wed, 6 Aug 2025 01:08:58 -0400 vim-patch:9.0.1689: python 3.12 produces warnings and fails test Problem: python 3.12 produces warnings and fails test Solution: Make use of raw strings in python3 tests closes: vim/vim#12765 https://github.com/vim/vim/commit/288bf26c5310ce3b06042d3f731c0d2341325fb5 Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com> Diffstat:
| M | test/old/testdir/test_python3.vim | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/old/testdir/test_python3.vim b/test/old/testdir/test_python3.vim @@ -11,10 +11,10 @@ func Test_AAA_python3_setup() import sys import re - py33_type_error_pattern = re.compile('^__call__\(\) takes (\d+) positional argument but (\d+) were given$') + py33_type_error_pattern = re.compile(r'^__call__\(\) takes (\d+) positional argument but (\d+) were given$') py37_exception_repr = re.compile(r'([^\(\),])(\)+)$') - py39_type_error_pattern = re.compile('\w+\.([^(]+\(\) takes)') - py310_type_error_pattern = re.compile('takes (\d+) positional argument but (\d+) were given') + py39_type_error_pattern = re.compile(r'\w+\.([^(]+\(\) takes)') + py310_type_error_pattern = re.compile(r'takes (\d+) positional argument but (\d+) were given') def emsg(ei): return ei[0].__name__ + ':' + repr(ei[1].args)