tests: port inline extensions in test-hook.t to py3...
tests: port inline extensions in test-hook.t to py3
This test *almost* passes now, but some import errors print very
differently in ways that seem at least somewhat important.
Differential Revision:
https://phab.mercurial-scm.org/D3363