diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
commit | e9d044d4b9b71200a96adfa280848858c0f468c9 (patch) | |
tree | 1bd8ef816043a8cd340f1d774e79553a1a7d31d8 /dev-python/python-daemon/files | |
parent | fc2f1018fc323ef2c6572734a9b130427cba76a6 (diff) |
gentoo resync : 13.11.2021
Diffstat (limited to 'dev-python/python-daemon/files')
-rw-r--r-- | dev-python/python-daemon/files/python-daemon-2.3.0-fix-py3.10.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/python-daemon/files/python-daemon-2.3.0-fix-py3.10.patch b/dev-python/python-daemon/files/python-daemon-2.3.0-fix-py3.10.patch new file mode 100644 index 000000000000..4fd082dc8f77 --- /dev/null +++ b/dev-python/python-daemon/files/python-daemon-2.3.0-fix-py3.10.patch @@ -0,0 +1,28 @@ +https://pagure.io/python-daemon/c/0c67a3c6407fbf4483ccfc94a7a0d78cf3379296 + +From: Miro HronĨok <miro@hroncok.cz> +Date: Sep 29 2021 10:05:27 +0000 +Subject: Remove incorrect double-patch of objects in test cases. + +The specific test cases relying on the patches, already are decorated +to patch the specific attributes needed. We don't need a general patch +of the attributes in the test case setup. + +Signed-off-by: Ben Finney <ben+python@benfinney.id.au> + +--- a/test/test_pidfile.py ++++ b/test/test_pidfile.py +@@ -367,12 +367,6 @@ class TimeoutPIDLockFile_TestCase(scaffold.TestCase): + pidlockfile_scenarios = make_pidlockfile_scenarios() + self.pidlockfile_scenario = pidlockfile_scenarios['simple'] + +- for func_name in ['__init__', 'acquire']: +- func_patcher = unittest.mock.patch.object( +- lockfile.pidlockfile.PIDLockFile, func_name) +- func_patcher.start() +- self.addCleanup(func_patcher.stop) +- + self.scenario = { + 'pidfile_path': self.pidlockfile_scenario['pidfile_path'], + 'acquire_timeout': self.getUniqueInteger(), + |