Skip to content

Commit af5f284

Browse files
authored
🐛 Fix test_dsl for pytest>=8.3.0 (#845)
- The new version of `pytest` (>=8.3.0) does not update variables properly in different scenarios. This causes the tests to fail. As a fix I have nested variables in a dictionary and then parse them for each function. - Remove pin from `pytest` version.
1 parent a6fceef commit af5f284

File tree

3 files changed

+96
-116
lines changed

3 files changed

+96
-116
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
sudo apt update
3131
sudo apt-get install -y libopenslide-dev openslide-tools libopenjp2-7 libopenjp2-tools
3232
python -m pip install --upgrade pip
33-
python -m pip install ruff==0.5.7 "pytest<8.3.0" pytest-cov pytest-runner
33+
python -m pip install ruff==0.5.7 pytest pytest-cov pytest-runner
3434
pip install -r requirements/requirements.txt
3535
- name: Cache tiatoolbox static assets
3636
uses: actions/cache@v3

requirements/requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mypy>=1.6.1
77
pip>=22.3
88
poetry-bumpversion>=0.3.1
99
pre-commit>=2.20.0
10-
pytest>=7.2.0, <8.3.0
10+
pytest>=7.2.0
1111
pytest-cov>=4.0.0
1212
pytest-runner>=6.0
1313
pytest-xdist[psutil]

0 commit comments

Comments
 (0)