зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
051548cbe7
Коммит
bfa8d74f55
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче