Bug 1471920 - [mozbuild] Use shutil.which in Python 3 instead of vendored third-party package r=davehunt

Use shutil.which in mozbuild for Python 3 instead of vendored third-party package, and enable mozversion tests that are fixed under Python 3 by this change.

Differential Revision: https://phabricator.services.mozilla.com/D4184

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Preeti Mukherjee 2018-08-30 16:39:55 +00:00
Родитель 051548cbe7
Коммит bfa8d74f55
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -11,7 +11,11 @@ import multiprocessing
import os
import subprocess
import sys
import which
try:
from shutil import which
except ImportError:
# shutil.which is not available in Python 2.7
import which
from mach.mixin.process import ProcessExecutionMixin
from mozversioncontrol import (

Просмотреть файл

@ -1,5 +1,6 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
skip-if = python == 3
[test_binary.py]
[test_apk.py]
skip-if = python == 3