Cython/21e64ec206.patch
2023-03-07 10:09:28 +01:00

25 lines
1,009 B
Diff

From 21e64ec20619d9ac530030a8e0c259912af10407 Mon Sep 17 00:00:00 2001
From: Matti Picus <matti.picus@gmail.com>
Date: Tue, 29 Nov 2022 08:55:55 +0200
Subject: [PATCH] Disable "py_unicode_strings" test in Py3.12, which removed
the support for it.
Picked from https://github.com/cython/cython/commit/9d38bf8d620fd09166a5469c76b54f66d7fbd828
---
runtests.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/runtests.py b/runtests.py
index 91a0dd2570..cc79a53250 100755
--- a/runtests.py
+++ b/runtests.py
@@ -429,6 +429,9 @@ def get_openmp_compiler_flags(language):
'run.pep526_variable_annotations', # typing module
'run.test_exceptions', # copied from Py3.7+
]),
+ (3,11,999): (operator.gt, lambda x: x in ['run.py_unicode_strings',
+ ]),
+
}
INCLUDE_DIRS = [ d for d in os.getenv('INCLUDE', '').split(os.pathsep) if d ]