diff --git a/README.md b/README.md index 88c07d7..b563f18 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,12 @@ On Ubuntu previous Python versions can be installed with relative easy via the deadsnakes PPA: see instructions in https://tech.joellemena.com/python/install-python3-6-in-ubuntu-22-04/ +To run a specific test via `tox` on a specific Python version: + +``` +PYTEST_ARGS=-ktry_except_raise tox -e py37 +``` + ### py.test py.test is run for any given Python version under test -- it is driven via a diff --git a/tox.ini b/tox.ini index 8700f56..9401ca7 100644 --- a/tox.ini +++ b/tox.ini @@ -8,4 +8,4 @@ deps = commands = mypy src/echo pycodestyle src/ tests/ bin/echo_vm - pytest -k 'not knownf' + pytest {env:PYTEST_ARGS:-k 'not knownf'}