Skip to content

Commit e58f228

Browse files
committed
Add retry for flaky tests, and remove 3.8 from tests
1 parent ed9a632 commit e58f228

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

azure-pipelines/pipelines.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
pool: { vmImage: "ubuntu-latest" }
2929

3030
variables:
31-
python.version: "3.8"
31+
python.version: "3.9"
3232

3333
steps:
3434

@@ -57,8 +57,6 @@ jobs:
5757

5858
strategy:
5959
matrix:
60-
py38:
61-
python.version: "3.8"
6260
py39:
6361
python.version: "3.9"
6462
py310:
@@ -87,8 +85,6 @@ jobs:
8785

8886
strategy:
8987
matrix:
90-
py38:
91-
python.version: "3.8"
9288
py39:
9389
python.version: "3.9"
9490
py310:
@@ -117,8 +113,6 @@ jobs:
117113

118114
strategy:
119115
matrix:
120-
py38:
121-
python.version: "3.8"
122116
py39:
123117
python.version: "3.9"
124118
py39_32:

tests/debugpy/test_exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def raise_without_except():
150150
sys.platform == "darwin",
151151
reason="https://github.com/microsoft/ptvsd/issues/1988",
152152
)
153+
@pytest.mark.flaky(retries=2, delay=1)
153154
@pytest.mark.parametrize("target", targets.all_named)
154155
@pytest.mark.parametrize("run", runners.all)
155156
@pytest.mark.parametrize("raised", ["raised", ""])

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pytest
44
pytest-xdist
55
pytest-cov
66
pytest-timeout
7+
pytest-retry
78

89
## Used by test helpers:
910

0 commit comments

Comments
 (0)