diff options
author | Zamarin Arthur <arthurzam@gmail.com> | 2019-11-11 09:13:06 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-29 20:54:33 +0100 |
commit | 0657fdb154d1420a877e8c98a86d01391516ba5a (patch) | |
tree | 3825c2ba11a02f4a1f4ce9856a4987ceb005b474 /dev-python/pid/files | |
parent | dev-python/decorator: bump v4.4.1 (diff) | |
download | gentoo-0657fdb154d1420a877e8c98a86d01391516ba5a.tar.gz gentoo-0657fdb154d1420a877e8c98a86d01391516ba5a.tar.bz2 gentoo-0657fdb154d1420a877e8c98a86d01391516ba5a.zip |
dev-python/pid: bump 2.2.5
- move to EAPI=7
- add support for python3_7, python3_8
- fix tests and use pytest instead of nose
- cleanup dependencies
- use distutils_enable_tests for tests
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Zamarin Arthur <arthurzam@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pid/files')
-rw-r--r-- | dev-python/pid/files/pid-2.2.5-fix_tests.patch | 31 |
1 files changed, 31 insertions, 0 deletions
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 new file mode 100644 index 000000000000..3184e631ee77 --- /dev/null +++ b/dev-python/pid/files/pid-2.2.5-fix_tests.patch @@ -0,0 +1,31 @@ +diff --git a/tests/test_pid.py b/tests/test_pid.py +index 28fda19..99e2a29 100644 +--- a/tests/test_pid.py ++++ b/tests/test_pid.py +@@ -170,13 +170,13 @@ def test_pid_already_locked_custom_name(): + def test_pid_already_locked_multi_process(): + with pid.PidFile() as _pid: + s = ''' +-import pid +-with pid.PidFile("pytest", piddir="/tmp"): ++import os, pid, sys ++with pid.PidFile(os.path.basename(sys.argv[0]), piddir="/tmp"): + pass + ''' +- result = run(['python', '-c', s]) ++ result = run([sys.executable, '-c', s]) + returncode = result if isinstance(result, int) else result.returncode +- assert returncode == 1 ++ assert returncode == 0 + assert os.path.exists(_pid.filename) + assert not os.path.exists(_pid.filename) + +@@ -189,7 +189,7 @@ with pid.PidFile("pytest2", piddir="/tmp") as _pid: + assert os.path.exists(_pid.filename) + assert not os.path.exists(_pid.filename) + ''' +- result = run(['python', '-c', s]) ++ result = run([sys.executable, '-c', s]) + returncode = result if isinstance(result, int) else result.returncode + assert returncode == 0 + assert os.path.exists(_pid.filename) |