Skip to content

Commit

Permalink
Make a way to run a particular test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdleary committed Apr 29, 2024
1 parent 2f7e35e commit a31119c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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'}

0 comments on commit a31119c

Please sign in to comment.