diff options
Diffstat (limited to 'dev-python/loky/files')
-rw-r--r-- | dev-python/loky/files/loky-2.9.0-fix-py3.10-tests.patch | 41 | ||||
-rw-r--r-- | dev-python/loky/files/loky-2.9.0-libc.patch | 28 |
2 files changed, 0 insertions, 69 deletions
diff --git a/dev-python/loky/files/loky-2.9.0-fix-py3.10-tests.patch b/dev-python/loky/files/loky-2.9.0-fix-py3.10-tests.patch deleted file mode 100644 index 51cbfb348a51..000000000000 --- a/dev-python/loky/files/loky-2.9.0-fix-py3.10-tests.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 0d31dc24ca9688c11d1fe53fa1283728ecc50706 Mon Sep 17 00:00:00 2001 -From: Arthur Zamarin <arthurzam@gmail.com> -Date: Mon, 2 Aug 2021 18:35:31 +0300 -Subject: [PATCH] Fix no attribute import_module for python 3.10 - -In python 3.10, the `import_module` has moved from the -`test.support` module to `test.support.import_helper`. - -As fix, try to import the from the new place and if unknown try from -the old place. ---- - tests/_test_process_executor.py | 11 +++++++---- - 1 file changed, 7 insertions(+), 4 deletions(-) - -diff --git a/tests/_test_process_executor.py b/tests/_test_process_executor.py -index 65d9a2c9..3bd0b12d 100644 ---- a/tests/_test_process_executor.py -+++ b/tests/_test_process_executor.py -@@ -1,15 +1,18 @@ - from __future__ import print_function - try: -- import test.support -+ try: -+ from test.support.import_helper import import_module -+ except ImportError: -+ from test.support import import_module - - # Skip tests if _multiprocessing wasn't built. -- test.support.import_module('_multiprocessing') -+ import_module('_multiprocessing') - # Skip tests if sem_open implementation is broken. -- test.support.import_module('multiprocessing.synchronize') -+ import_module('multiprocessing.synchronize') - # import threading after _multiprocessing to raise a more revelant error - # message: "No module named _multiprocessing" if multiprocessing is not - # compiled without thread support. -- test.support.import_module('threading') -+ import_module('threading') - except ImportError: - pass - diff --git a/dev-python/loky/files/loky-2.9.0-libc.patch b/dev-python/loky/files/loky-2.9.0-libc.patch deleted file mode 100644 index 58cceab01eb2..000000000000 --- a/dev-python/loky/files/loky-2.9.0-libc.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 4100bb481dd1599be3deae8539ff9eac2d9b7104 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Mon, 8 Mar 2021 10:32:38 +0100 -Subject: [PATCH] FIX load libc correctly in test_reusable_executor - -Fix test_reusable_executor to load libc via "c" library rather than -"libc". The latter is incorrect, and does not work in the newest -versions of Python anymore, see https://bugs.python.org/issue42580. ---- - tests/test_reusable_executor.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tests/test_reusable_executor.py b/tests/test_reusable_executor.py -index 1ff5b8b..d24d2de 100644 ---- a/tests/test_reusable_executor.py -+++ b/tests/test_reusable_executor.py -@@ -32,7 +32,7 @@ if sys.platform == "win32": - else: - from signal import SIGKILL - from ctypes.util import find_library -- libc = ctypes.CDLL(find_library("libc")) -+ libc = ctypes.CDLL(find_library("c")) - - - try: --- -2.30.1 - |