def test_removePIDErrors(self):
        runner = UnixApplicationRunner({})
        runner.removePID("fakepid")
        errors = self.flushLoggedErrors(OSError)
        self.assertEqual(len(errors), 1)
        self.assertEqual(errors[0].value.errno, errno.ENOENT)
Calling L{UnixApplicationRunner.removePID} with a non-existent filename
dataset/ETHPy150Open twisted/twisted/twisted/test/test_twistd.py/UnixApplicationRunnerRemovePIDTests.test_removePIDErrors