mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-25 13:29:45 +00:00
test_iputil.py: use more realistic error for 'command not found' in mock.
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
This commit is contained in:
parent
b31a4f6e87
commit
16b245563d
@ -99,8 +99,8 @@ class ListAddresses(testutil.SignalMixin, unittest.TestCase):
|
|||||||
elif os.path.basename(args[0]) == command:
|
elif os.path.basename(args[0]) == command:
|
||||||
return FakeProcess(output, "")
|
return FakeProcess(output, "")
|
||||||
else:
|
else:
|
||||||
e = OSError("not found")
|
e = OSError("[Errno 2] No such file or directory")
|
||||||
e.errno = errno.EEXIST
|
e.errno = errno.ENOENT
|
||||||
raise e
|
raise e
|
||||||
self.patch(subprocess, 'Popen', call_Popen)
|
self.patch(subprocess, 'Popen', call_Popen)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user