diff -r 57875cf423c9 -r 2372284d9457 tests/test-dispatch.py --- a/tests/test-dispatch.py Sat Oct 05 10:29:34 2019 -0400 +++ b/tests/test-dispatch.py Sun Oct 06 09:45:02 2019 -0400 @@ -1,15 +1,15 @@ from __future__ import absolute_import, print_function import os import sys -from mercurial import ( - dispatch, -) +from mercurial import dispatch + def printb(data, end=b'\n'): out = getattr(sys.stdout, 'buffer', sys.stdout) out.write(data + end) out.flush() + def testdispatch(cmd): """Simple wrapper around dispatch.dispatch() @@ -20,6 +20,7 @@ result = dispatch.dispatch(req) printb(b"result: %r" % (result,)) + testdispatch(b"init test1") os.chdir('test1')