comparison tests/test_unaffected_core.py @ 1344:38be7a6b6def stable 1.8.2

tests: have our dispatch wrappers assert --quiet is always passed This should help avoid regressions in the "progress eats my testsuite dots" area.
author Augie Fackler <raf@durin42.com>
date Tue, 11 Aug 2015 16:52:38 -0400
parents e597714cb420
children 306187268f59
comparison
equal deleted inserted replaced
1343:e597714cb420 1344:38be7a6b6def
9 from mercurial import hg 9 from mercurial import hg
10 from mercurial import node 10 from mercurial import node
11 from mercurial import ui 11 from mercurial import ui
12 12
13 def _dispatch(ui, cmd): 13 def _dispatch(ui, cmd):
14 assert '--quiet' in cmd
14 try: 15 try:
15 req = dispatch.request(cmd, ui=ui) 16 req = dispatch.request(cmd, ui=ui)
16 dispatch._dispatch(req) 17 dispatch._dispatch(req)
17 except AttributeError: 18 except AttributeError:
18 dispatch._dispatch(ui, cmd) 19 dispatch._dispatch(ui, cmd)