Disable Mercurial Tests on Travis

This commit is contained in:
Pradyun Gedam 2018-12-02 16:37:26 +05:30
parent eee2f6057a
commit f5ae9597c4
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
2 changed files with 9 additions and 1 deletions

View File

@ -789,6 +789,13 @@ def need_bzr(fn):
def need_mercurial(fn):
# Remove once things get fixed properly.
if os.environ.get("TRAVIS") == "true":
return pytest.mark.skip(reason=(
"Travis CI's mercurial is outdated: "
"https://github.com/pypa/pip/issues/6057"
))
return pytest.mark.mercurial(need_executable(
'Mercurial', ('hg', 'version')
)(fn))

View File

@ -10,7 +10,8 @@ envlist =
pip = python {toxinidir}/tools/tox_pip.py
[testenv]
passenv = CI GIT_SSL_CAINFO
# NOTE: remove TRAVIS once #6057 is fixed.
passenv = CI TRAVIS GIT_SSL_CAINFO
setenv =
# This is required in order to get UTF-8 output inside of the subprocesses
# that our tests use.