Some of the test cases in test_pidlockfile.TimeoutPIDLockFile_TestCase apply a unittest.mock.patch to objects that already have a patch. This is invalid, and some Python versions will raise an error (unittest.mock.InvalidSpecError).
test_pidlockfile.TimeoutPIDLockFile_TestCase
unittest.mock.patch
unittest.mock.InvalidSpecError
Ensure the test cases apply patches only on live system code, not mock objects.
Thanks to @churchyard for describing this issue.
This is now addressed in commit 0c67a3c6.
Metadata Update from @bignose: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
These improvements are now part of ‘python-daemon’ version 2.3.1, released today.