mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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
288bf26c53
Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user