comparison tests/test_util.py @ 1517:b3e41b0d50a2

test: enable devel.all-warnings This enables some extra checks in core Mercurial helpful for detecting potential issues.
author Jun Wu <quark@fb.com>
date Mon, 07 Aug 2017 18:11:56 -0700
parents 0991df151799
children adba152a5177
comparison
equal deleted inserted replaced
1516:fbc22592f4fa 1517:b3e41b0d50a2
296 u.setconfig('ui', 'username', 'automated tests') 296 u.setconfig('ui', 'username', 'automated tests')
297 u.setconfig('extensions', 'hgsubversion', '') 297 u.setconfig('extensions', 'hgsubversion', '')
298 u.setconfig('hgsubversion', 'stupid', bools[stupid]) 298 u.setconfig('hgsubversion', 'stupid', bools[stupid])
299 u.setconfig('hgsubversion', 'layout', layout) 299 u.setconfig('hgsubversion', 'layout', layout)
300 u.setconfig('hgsubversion', 'startrev', startrev) 300 u.setconfig('hgsubversion', 'startrev', startrev)
301 u.setconfig('devel', 'all-warnings', True)
301 return u 302 return u
302 303
303 def dispatch(cmd): 304 def dispatch(cmd):
304 assert '--quiet' in cmd 305 assert '--quiet' in cmd
305 cmd = getattr(dispatchmod, 'request', lambda x: x)(cmd) 306 cmd = getattr(dispatchmod, 'request', lambda x: x)(cmd)