-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
type: bugproblem that needs to be addressedproblem that needs to be addressed
Description
Lets say I have a test module with content:
def test_one():
pass
def test_two():
pass
def test_three():
pass
pytest -k test_
would should show:
collected 3 items / 1 deselected / 2 selected
But if there is another test module that raises an exception when imported: i.e.:
5/0
def test_foo():
pass
The output for same command would be:
collected 3 items / 1 error / 1 deselected / 1 selected
Note how no new item was collected from the module raising an exception,
but the "selected" count substracted 1 due to the error on collecting the module.
The expected output would be:
collected 3 items / 1 error / 1 deselected / 2 selected
pytest version 7.0.0
Metadata
Metadata
Assignees
Labels
type: bugproblem that needs to be addressedproblem that needs to be addressed