changeset 1545:306187268f59

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.
author Jun Wu <quark@fb.com>
date Mon, 04 Dec 2017 18:13:00 -0800
parents ac40236a06e3
children ddfd60760fac
files tests/test_unaffected_core.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)