From 16b245563db2f6ca71b9332b06debbe3e1d734b4 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 25 Jun 2013 19:50:52 +0100 Subject: [PATCH] test_iputil.py: use more realistic error for 'command not found' in mock. Signed-off-by: Daira Hopwood --- src/allmydata/test/test_iputil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/test_iputil.py b/src/allmydata/test/test_iputil.py index fcb10178..00359a42 100644 --- a/src/allmydata/test/test_iputil.py +++ b/src/allmydata/test/test_iputil.py @@ -99,8 +99,8 @@ class ListAddresses(testutil.SignalMixin, unittest.TestCase): elif os.path.basename(args[0]) == command: return FakeProcess(output, "") else: - e = OSError("not found") - e.errno = errno.EEXIST + e = OSError("[Errno 2] No such file or directory") + e.errno = errno.ENOENT raise e self.patch(subprocess, 'Popen', call_Popen) -- 2.45.2