diff tests/test_single_dir_clone.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 89eda60c90b3
children 930bb6df19a0
line wrap: on
line diff
--- a/tests/test_single_dir_clone.py
+++ b/tests/test_single_dir_clone.py
@@ -1,3 +1,4 @@
+import errno
 import shutil
 
 from mercurial import commands
@@ -90,7 +91,7 @@ class TestSingleDir(test_util.TestBase):
                                           islink=False,
                                           isexec=False,
                                           copied=False)
-            raise IOError()
+            raise IOError(errno.EINVAL, 'Invalid operation: ' + path)
         ctx = context.memctx(repo,
                              (repo['tip'].node(), node.nullid),
                              'automated test',
@@ -150,7 +151,7 @@ class TestSingleDir(test_util.TestBase):
                                               islink=False,
                                               isexec=False,
                                               copied=False)
-                raise IOError()
+                raise IOError(errno.EINVAL, 'Invalid operation: ' + path)
             return cb
 
         def commit_to_branch(name, parent):