tests: disable bitbucket tests because Travis-CI chooses the obsolete TLS 1.0 protocol

This commit is contained in:
lilydjwg 2018-12-05 16:34:57 +08:00
parent 6c6aff99b1
commit 1da0e785db

View File

@ -15,6 +15,8 @@ async def test_git(get_version):
@pytest.mark.skipif(shutil.which("hg") is None,
reason="requires hg command")
@pytest.mark.skipif(os.environ.get('TRAVIS') == 'true',
reason="Travis-CI chooses the obsolete TLS 1.0 protocol")
async def test_mercurial(get_version):
os.path.exists("example") or os.mkdir("example")
assert await get_version("example", {"vcs": "hg+https://bitbucket.org/pil0t/testrepo"}) == "1.1.84679e29c7d9"