MCPcopy
hub / github.com/celery/celery / test_remove_ENOENT

Method test_remove_ENOENT

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

Source from the content-addressed store, hash-verified

609
610 @patch('os.unlink')
611 def test_remove_ENOENT(self, unlink):
612 exc = OSError()
613 exc.errno = errno.ENOENT
614 unlink.side_effect = exc
615 p = Pidfile('/var/pid')
616 p.remove()
617 unlink.assert_called_with(p.path)
618
619 @patch('os.unlink')
620 def test_remove_EACCES(self, unlink):

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
PidfileClass · 0.90

Tested by

no test coverage detected