1 |
commit: bd86ec369211f44451d166694b1dfe43e31e7279 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue May 19 19:20:57 2020 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 2 04:27:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd86ec36 |
7 |
|
8 |
dev-python/jaraco-functools: remove unused patch(es) |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
11 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
12 |
|
13 |
.../jaraco-functools-2.0-fix-py37-tests.patch | 41 ---------------------- |
14 |
1 file changed, 41 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/jaraco-functools/files/jaraco-functools-2.0-fix-py37-tests.patch b/dev-python/jaraco-functools/files/jaraco-functools-2.0-fix-py37-tests.patch |
17 |
deleted file mode 100644 |
18 |
index dc296c4eb47..00000000000 |
19 |
--- a/dev-python/jaraco-functools/files/jaraco-functools-2.0-fix-py37-tests.patch |
20 |
+++ /dev/null |
21 |
@@ -1,41 +0,0 @@ |
22 |
-From cc972095e5aa2ae80d1d69d7ca84ee94178e869a Mon Sep 17 00:00:00 2001 |
23 |
-From: "Jason R. Coombs" <jaraco@××××××.com> |
24 |
-Date: Sat, 20 Apr 2019 07:08:41 -0400 |
25 |
-Subject: [PATCH] Rewrite docstring on Python 3.7.3 to allow the test to pass. |
26 |
- Fixes #12. |
27 |
- |
28 |
---- |
29 |
- conftest.py | 24 ++++++++++++++++++++++++ |
30 |
- 1 file changed, 24 insertions(+) |
31 |
- create mode 100644 conftest.py |
32 |
- |
33 |
-diff --git a/conftest.py b/conftest.py |
34 |
-new file mode 100644 |
35 |
-index 0000000..b6fad41 |
36 |
---- /dev/null |
37 |
-+++ b/conftest.py |
38 |
-@@ -0,0 +1,24 @@ |
39 |
-+import sys |
40 |
-+import re |
41 |
-+ |
42 |
-+import jaraco.functools |
43 |
-+ |
44 |
-+ |
45 |
-+def pytest_configure(): |
46 |
-+ patch_for_issue_12() |
47 |
-+ |
48 |
-+ |
49 |
-+def patch_for_issue_12(): |
50 |
-+ """ |
51 |
-+ Issue #12 revealed that Python 3.7.3 had a subtle |
52 |
-+ change in the C implementation of functools that |
53 |
-+ broke the assumptions around the method_cache (or |
54 |
-+ any caller using possibly empty keyword arguments). |
55 |
-+ This patch adjusts the docstring for that test so it |
56 |
-+ can pass on that Python version. |
57 |
-+ """ |
58 |
-+ affected_ver = 3, 7, 3 |
59 |
-+ if sys.version_info[:3] != affected_ver: |
60 |
-+ return |
61 |
-+ mc = jaraco.functools.method_cache |
62 |
-+ mc.__doc__ = re.sub(r'^(\s+)75', r'\g<1>76', mc.__doc__, flags=re.M) |