]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_iputil.py: use more realistic error for 'command not found' in mock.
authorDaira Hopwood <david-sarah@jacaranda.org>
Tue, 25 Jun 2013 18:50:52 +0000 (19:50 +0100)
committerDaira Hopwood <david-sarah@jacaranda.org>
Tue, 25 Jun 2013 18:50:52 +0000 (19:50 +0100)
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
src/allmydata/test/test_iputil.py

index fcb101785d58d8f4c3e7250185148263154ce664..00359a428e98ae734860bcf3d592a40e4d88852a 100644 (file)
@@ -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)