MCPcopy
hub / github.com/celery/celery / test_remove_EACCES

Method test_remove_EACCES

t/unit/utils/test_platforms.py:620–626  ·  view source on GitHub ↗
(self, unlink)

Source from the content-addressed store, hash-verified

618
619 @patch('os.unlink')
620 def test_remove_EACCES(self, unlink):
621 exc = OSError()
622 exc.errno = errno.EACCES
623 unlink.side_effect = exc
624 p = Pidfile('/var/pid')
625 p.remove()
626 unlink.assert_called_with(p.path)
627
628 @patch('os.unlink')
629 def test_remove_OSError(self, unlink):

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
PidfileClass · 0.90

Tested by

no test coverage detected