Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fff3ad5

Browse files
authored
Merge pull request #1052 from pre-commit/rust_ap
azure pipelines now has rust by default on windows
2 parents 0b6a397 + 071cc42 commit fff3ad5

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

azure-pipelines.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ jobs:
2020
os: windows
2121
additional_variables:
2222
COVERAGE_IGNORE_WINDOWS: '# pragma: windows no cover'
23-
TOX_TESTENV_PASSENV: COVERAGE_IGNORE_WINDOWS
23+
TOX_TESTENV_PASSENV: COVERAGE_IGNORE_WINDOWS RUSTUP_HOME
2424
TEMP: C:\Temp # remove when dropping python2
25-
pre_test:
26-
- template: step--rust-install.yml
2725
- template: job--python-tox.yml@asottile
2826
parameters:
2927
toxenvs: [py37]

tests/repository_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os.path
55
import re
66
import shutil
7+
import sys
78

89
import cfgv
910
import mock
@@ -717,6 +718,10 @@ def local_python_config():
717718
return {'repo': 'local', 'hooks': hooks}
718719

719720

721+
@pytest.mark.xfail( # pragma: windows no cover
722+
sys.platform == 'win32',
723+
reason='microsoft/azure-pipelines-image-generation#989',
724+
)
720725
def test_local_python_repo(store, local_python_config):
721726
hook = _get_hook(local_python_config, store, 'foo')
722727
# language_version should have been adjusted to the interpreter version

0 commit comments

Comments
 (0)