Fix unit tests when hg is uninstalled or matches a different Python.
Review Request #10621 — Created July 8, 2019 and submitted
We had a unit test that was checking for the
mercurialmodule to be
loaded before attempting to create a Mercurial-based repository. This
check wasn't correct, because we don't care if the module is accessible.
We only care if the
Another unit test wasn't performing a check at all, erroring out instead
when trying to create the repository.
This change fixes both issues by checking for the
hgbinary to be
available before running the test.
Unit tests pass with and without the
hgbinary (and without access to