patch 9.0.1689: python 3.12 produces warnings and fails test

Commit: 
https://github.com/vim/vim/commit/288bf26c5310ce3b06042d3f731c0d2341325fb5
Author: Zdenek Dohnal <[email protected]>
Date:   Fri Aug 11 23:32:23 2023 +0200

    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: #12765
    
    Signed-off-by: Christian Brabandt <[email protected]>
    Co-authored-by: Zdenek Dohnal <[email protected]>

diff --git a/src/testdir/test_python3.vim b/src/testdir/test_python3.vim
index b7140ee7b..e975cb61b 100644
--- a/src/testdir/test_python3.vim
+++ b/src/testdir/test_python3.vim
@@ -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)
diff --git a/src/version.c b/src/version.c
index 99f0013ee..54a43765e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1689,
 /**/
     1688,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qUZwM-00FCVX-Kb%40256bit.org.

Raspunde prin e-mail lui