Skip to content

Commit

Permalink
Second run of tox -e py results in a test error for test marked with …
Browse files Browse the repository at this point in the history
…no_python2 (#2369)

Fixes #2367
  • Loading branch information
MarcoGorelli committed Jul 11, 2021
1 parent dd6c674 commit 548d699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tox.ini
Expand Up @@ -4,6 +4,10 @@ envlist = {,ci-}py{36,37,38,39},fuzz
[testenv]
setenv = PYTHONPATH = {toxinidir}/src
skip_install = True
# We use `recreate=True` because otherwise, on the second run of `tox -e py`,
# the `no_python2` tests would run with the Python2 extra dependencies installed.
# See https://github.com/psf/black/issues/2367.
recreate = True
deps =
-r{toxinidir}/test_requirements.txt
; parallelization is disabled on CI because pytest-dev/pytest-xdist#620 occurs too frequently
Expand Down

0 comments on commit 548d699

Please sign in to comment.