Skip to content

Commit

Permalink
patch 9.0.1689: python 3.12 produces warnings and fails test
Browse files Browse the repository at this point in the history
Problem: python 3.12 produces warnings and fails test
Solution: Make use of raw strings in python3 tests

closes: #12765

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com>
  • Loading branch information
zdohnal authored and chrisbra committed Aug 11, 2023
1 parent ca6ac99 commit 288bf26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/testdir/test_python3.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1689,
/**/
1688,
/**/
Expand Down

0 comments on commit 288bf26

Please sign in to comment.