Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pid/files/
Date: Wed, 27 Jan 2021 18:17:29
Message-Id: 1611771436.23222e6e3da6ac7b9dd6561970647c1305bc7337.conikost@gentoo
1 commit: 23222e6e3da6ac7b9dd6561970647c1305bc7337
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Jan 27 12:49:39 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 27 18:17:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23222e6e
7
8 dev-python/pid: remove unused patch(es)
9
10 Closes: https://github.com/gentoo/gentoo/pull/19237
11 Package-Manager: Portage-3.0.14, Repoman-3.0.2
12 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 dev-python/pid/files/pid-2.2.5-fix_tests.patch | 31 --------------------------
16 1 file changed, 31 deletions(-)
17
18 diff --git a/dev-python/pid/files/pid-2.2.5-fix_tests.patch b/dev-python/pid/files/pid-2.2.5-fix_tests.patch
19 deleted file mode 100644
20 index 3184e631ee7..00000000000
21 --- a/dev-python/pid/files/pid-2.2.5-fix_tests.patch
22 +++ /dev/null
23 @@ -1,31 +0,0 @@
24 -diff --git a/tests/test_pid.py b/tests/test_pid.py
25 -index 28fda19..99e2a29 100644
26 ---- a/tests/test_pid.py
27 -+++ b/tests/test_pid.py
28 -@@ -170,13 +170,13 @@ def test_pid_already_locked_custom_name():
29 - def test_pid_already_locked_multi_process():
30 - with pid.PidFile() as _pid:
31 - s = '''
32 --import pid
33 --with pid.PidFile("pytest", piddir="/tmp"):
34 -+import os, pid, sys
35 -+with pid.PidFile(os.path.basename(sys.argv[0]), piddir="/tmp"):
36 - pass
37 - '''
38 -- result = run(['python', '-c', s])
39 -+ result = run([sys.executable, '-c', s])
40 - returncode = result if isinstance(result, int) else result.returncode
41 -- assert returncode == 1
42 -+ assert returncode == 0
43 - assert os.path.exists(_pid.filename)
44 - assert not os.path.exists(_pid.filename)
45 -
46 -@@ -189,7 +189,7 @@ with pid.PidFile("pytest2", piddir="/tmp") as _pid:
47 - assert os.path.exists(_pid.filename)
48 - assert not os.path.exists(_pid.filename)
49 - '''
50 -- result = run(['python', '-c', s])
51 -+ result = run([sys.executable, '-c', s])
52 - returncode = result if isinstance(result, int) else result.returncode
53 - assert returncode == 0
54 - assert os.path.exists(_pid.filename)