MCPcopy
hub / github.com/celery/celery / test_read_pid_raises_ENOENT

Method test_read_pid_raises_ENOENT

t/unit/utils/test_platforms.py:580–585  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

578 p.read_pid()
579
580 def test_read_pid_raises_ENOENT(self):
581 exc = IOError()
582 exc.errno = errno.ENOENT
583 with conftest.open(side_effect=exc):
584 p = Pidfile('/var/pid')
585 assert p.read_pid() is None
586
587 def test_read_pid_raises_IOError(self):
588 exc = IOError()

Callers

nothing calls this directly

Calls 3

read_pidMethod · 0.95
PidfileClass · 0.90
openMethod · 0.45

Tested by

no test coverage detected