Skip to content

Commit

Permalink
tests: pin pytest 7.3.1 to avoid adverse testpaths behavior
Browse files Browse the repository at this point in the history
pytest 7.3.2 changed treatment of `testpaths` config which forced
test/unittest/conftest.py module load in our integration-tests
toxenv. Upstream bug is tracking their planned revert/fix for this
regression. Pin 7.3.1 in the meantime.

Fixes canonical#4183
  • Loading branch information
blackboxsw committed Jun 13, 2023
1 parent 06a1475 commit 3dd82e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion integration-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@
# https://cloudinit.readthedocs.io/en/latest/topics/integration_tests.html
#
pycloudlib==1!3.0.2
pytest

# Await pytest > 7.3.2. Breaking change in `testpaths` treatment forced
# test/unittests/conftest.py to be loaded by our integration-tests tox env
# resulting in an unmet dependency issue:
# https://github.com/pytest-dev/pytest/issues/11104
pytest==7.3.1

packaging
8 changes: 7 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Needed generally in tests
pytest

# Await pytest > 7.3.2. Breaking change in `testpaths` treatment forced
# test/unittests/conftest.py to be loaded by our integration-tests tox env
# resulting in an unmet dependency issue:
# https://github.com/pytest-dev/pytest/issues/11104
pytest==7.3.1

pytest-cov
pytest-mock

Expand Down

0 comments on commit 3dd82e2

Please sign in to comment.