# HG changeset patch # User Jun Wu # Date 1512439980 28800 # Node ID 306187268f596e3caf37f09cdd536b505e6e9f26 # Parent ac40236a06e3ea693607a049457882f692af5fec test_unaffected_core: be compatible with upstream change Upstream change 02845f7441af and d9aba3730d30 now requires certain `req.earlyoptions` items to be set before entering `dispatch._dispatch`. Update the test code to be compatible with it. This should be compatible with upstream changeset 8fbb26. diff --git a/tests/test_unaffected_core.py b/tests/test_unaffected_core.py --- a/tests/test_unaffected_core.py +++ b/tests/test_unaffected_core.py @@ -14,6 +14,8 @@ def _dispatch(ui, cmd): assert '--quiet' in cmd try: req = dispatch.request(cmd, ui=ui) + req.earlyoptions = {'config': [], 'cwd': '', 'debugger': None, + 'profile': False, 'repository': ''} dispatch._dispatch(req) except AttributeError: dispatch._dispatch(ui, cmd)