tests: fix up test-run-tests failures on Python 3.6
Some of the recent work on run-tests.py didn't work on Python 3. This
fixes the regressions.
Differential Revision: https://phab.mercurial-scm.org/D270
from __future__ import absolute_importimport pkgutil__path__ = pkgutil.extend_path(__path__, __name__)