diff tests/test_util.py @ 531:cf4fe45bf8fd

Change all instantiations of IOError to set both errno and strerror.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Tue, 26 Jan 2010 17:36:13 +0100
parents 2be9f14bd23f
children d84116dda52d
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -240,7 +240,8 @@ class TestBase(unittest.TestCase):
 
         def filectxfn(repo, memctx, path):
             if path in removed:
-                raise IOError()
+                raise IOError(errno.ENOENT,
+                              "File \"%s\" no longer exists" % path)
             entry = [e for e in changes if path == e[1]][0]
             source, dest, newdata = entry
             if newdata is None: