# HG changeset patch # User Siddharth Agarwal # Date 1410908611 25200 # Node ID f96e2495de395d5516a123ab4b409cd2a6a412c9 # Parent 339b5703000cb69d90a26f132fc5ebca32e03b80 test_push_command: use compat hack for filectxfn for deleted files diff --git a/tests/test_push_command.py b/tests/test_push_command.py --- a/tests/test_push_command.py +++ b/tests/test_push_command.py @@ -373,7 +373,7 @@ class PushTests(test_util.TestBase): def test_delete_file(self): repo = self.repo def file_callback(repo, memctx, path): - raise IOError(errno.ENOENT, '%s is deleted' % path) + return compathacks.filectxfn_deleted(memctx, path) old_files = set(repo['default'].manifest().keys()) ctx = context.memctx(repo, (repo['default'].node(), node.nullid),