archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-daemon / trunk / python310.patch
blob615a33fc925323325cc24e2b49b2b066a246168e
1 From 0c67a3c6407fbf4483ccfc94a7a0d78cf3379296 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
3 Date: Wed, 29 Sep 2021 19:59:30 +1000
4 Subject: [PATCH] Remove incorrect double-patch of objects in test cases.
6 The specific test cases relying on the patches, already are decorated
7 to patch the specific attributes needed. We don't need a general patch
8 of the attributes in the test case setup.
10 Signed-off-by: Ben Finney <ben+python@benfinney.id.au>
11 ---
12 test/test_pidfile.py | 6 ------
13 1 file changed, 6 deletions(-)
15 diff --git a/test/test_pidfile.py b/test/test_pidfile.py
16 index 2448855..1d0dd93 100644
17 --- a/test/test_pidfile.py
18 +++ b/test/test_pidfile.py
19 @@ -367,12 +367,6 @@ class TimeoutPIDLockFile_TestCase(scaffold.TestCase):
20 pidlockfile_scenarios = make_pidlockfile_scenarios()
21 self.pidlockfile_scenario = pidlockfile_scenarios['simple']
23 - for func_name in ['__init__', 'acquire']:
24 - func_patcher = unittest.mock.patch.object(
25 - lockfile.pidlockfile.PIDLockFile, func_name)
26 - func_patcher.start()
27 - self.addCleanup(func_patcher.stop)
29 self.scenario = {
30 'pidfile_path': self.pidlockfile_scenario['pidfile_path'],
31 'acquire_timeout': self.getUniqueInteger(),