Mercurial > hgsubversion
diff tests/test_util.py @ 916:7e9d805a0e1f
tests: fix regressions introduced by peer classes in hg 2.3
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Thu, 19 Jul 2012 16:01:17 -0700 |
parents | 312f36a425f0 |
children | 6918f60d0e28 |
line wrap: on
line diff
--- a/tests/test_util.py +++ b/tests/test_util.py @@ -160,11 +160,8 @@ def testui(stupid=False, layout='auto', return u def dispatch(cmd): - try: - req = dispatchmod.request(cmd) - dispatchmod.dispatch(req) - except AttributeError, e: - dispatchmod.dispatch(cmd) + cmd = getattr(dispatchmod, 'request', lambda x: x)(cmd) + dispatchmod.dispatch(cmd) def rmtree(path): # Read-only files cannot be removed under Windows