Open
Description
pytest tests/test_foo.py:42
should run the (nearest) test at line 42 in tests/test_foo.py
.
When it also ignores a trailing colon it would allow for easy copy'n'pasting from failures.
Via #5973:
To get a better overview of how it can work take a look at the Rspec documentation