# HG changeset patch # User Siddharth Agarwal # Date 1410908564 25200 # Node ID 339b5703000cb69d90a26f132fc5ebca32e03b80 # Parent 4ed0855d211fb589198564c796bd5d10aaa9d710 test_util: use compat hack for filectxfn for deleted files diff --git a/tests/test_util.py b/tests/test_util.py --- a/tests/test_util.py +++ b/tests/test_util.py @@ -667,8 +667,7 @@ class TestBase(unittest.TestCase): def filectxfn(repo, memctx, path): if path in removed: - raise IOError(errno.ENOENT, - "File \"%s\" no longer exists" % path) + return compathacks.filectxfn_deleted(memctx, path) entry = [e for e in changes if path == e[1]][0] source, dest, newdata = entry if newdata is None: