Do not hard-code Python 3.

This commit is contained in:
Eric Snow 2018-01-09 16:41:19 +00:00
parent e3d1732fcc
commit dc00f36e3e

View file

@ -8,8 +8,8 @@ import sys
TEST_ROOT = os.path.dirname(__file__)
PROJECT_ROOT = os.path.dirname(TEST_ROOT)
executable = 'python3 -m unittest'
executable = sys.executable + ' -m unittest'
if all(arg.startswith('-') for arg in sys.argv[1:]):
argv = [executable,
'discover',