From a31119c82019f0b31d94c6beb5ea7bf546bc5521 Mon Sep 17 00:00:00 2001 From: Chris Leary Date: Sun, 28 Apr 2024 18:58:25 -0700 Subject: [PATCH] Make a way to run a particular test case. --- README.md | 6 ++++++ tox.ini | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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'}