Closed
Description
$ pytest --rootdir=$PWD --confcutdir=$PWD test_group_warnings_by_message_summary.py --tb no
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.7.6, pytest-5.3.1.dev56+g3107e6934.d20191207, py-1.8.0, pluggy-0.13.1
rootdir: /home/rpfannsc/Projects/pytest-dev/pytest/testing/example_scripts/warnings
plugins: hypothesis-4.46.0, forked-1.1.3, xdist-1.30.0
collected 120 items
test_group_warnings_by_message_summary.py ........................................................................................................................ [100%]
==================================================================================================================== warnings summary ====================================================================================================================
test_group_warnings_by_message_summary.py::test_foo[0-0]
test_group_warnings_by_message_summary.py::test_foo[0-1]
test_group_warnings_by_message_summary.py::test_foo[0-2]
test_group_warnings_by_message_summary.py::test_foo[0-3]
test_group_warnings_by_message_summary.py::test_foo[0-4]
test_group_warnings_by_message_summary.py::test_foo[1-0]
test_group_warnings_by_message_summary.py::test_foo[1-1]
test_group_warnings_by_message_summary.py::test_foo[1-2]
test_group_warnings_by_message_summary.py::test_foo[1-3]
test_group_warnings_by_message_summary.py::test_foo[1-4]
test_group_warnings_by_message_summary.py::test_foo[2-0]
test_group_warnings_by_message_summary.py::test_foo[2-1]
test_group_warnings_by_message_summary.py::test_foo[2-2]
test_group_warnings_by_message_summary.py::test_foo[2-3]
test_group_warnings_by_message_summary.py::test_foo[2-4]
test_group_warnings_by_message_summary.py::test_foo[3-0]
test_group_warnings_by_message_summary.py::test_foo[3-1]
test_group_warnings_by_message_summary.py::test_foo[3-2]
test_group_warnings_by_message_summary.py::test_foo[3-3]
test_group_warnings_by_message_summary.py::test_foo[3-4]
test_group_warnings_by_message_summary.py::test_foo[4-0]
test_group_warnings_by_message_summary.py::test_foo[4-1]
test_group_warnings_by_message_summary.py::test_foo[4-2]
test_group_warnings_by_message_summary.py::test_foo[4-3]
test_group_warnings_by_message_summary.py::test_foo[4-4]
test_group_warnings_by_message_summary.py::test_foo[5-0]
test_group_warnings_by_message_summary.py::test_foo[5-1]
test_group_warnings_by_message_summary.py::test_foo[5-2]
test_group_warnings_by_message_summary.py::test_foo[5-3]
test_group_warnings_by_message_summary.py::test_foo[5-4]
test_group_warnings_by_message_summary.py::test_foo[6-0]
test_group_warnings_by_message_summary.py::test_foo[6-1]
test_group_warnings_by_message_summary.py::test_foo[6-2]
test_group_warnings_by_message_summary.py::test_foo[6-3]
test_group_warnings_by_message_summary.py::test_foo[6-4]
test_group_warnings_by_message_summary.py::test_foo[7-0]
test_group_warnings_by_message_summary.py::test_foo[7-1]
test_group_warnings_by_message_summary.py::test_foo[7-2]
test_group_warnings_by_message_summary.py::test_foo[7-3]
test_group_warnings_by_message_summary.py::test_foo[7-4]
test_group_warnings_by_message_summary.py::test_foo[8-0]
test_group_warnings_by_message_summary.py::test_foo[8-1]
test_group_warnings_by_message_summary.py::test_foo[8-2]
test_group_warnings_by_message_summary.py::test_foo[8-3]
test_group_warnings_by_message_summary.py::test_foo[8-4]
test_group_warnings_by_message_summary.py::test_foo[9-0]
test_group_warnings_by_message_summary.py::test_foo[9-1]
test_group_warnings_by_message_summary.py::test_foo[9-2]
test_group_warnings_by_message_summary.py::test_foo[9-3]
test_group_warnings_by_message_summary.py::test_foo[9-4]
test_group_warnings_by_message_summary.py::test_foo[10-0]
test_group_warnings_by_message_summary.py::test_foo[10-1]
test_group_warnings_by_message_summary.py::test_foo[10-2]
test_group_warnings_by_message_summary.py::test_foo[10-3]
test_group_warnings_by_message_summary.py::test_foo[10-4]
test_group_warnings_by_message_summary.py::test_foo[11-0]
test_group_warnings_by_message_summary.py::test_foo[11-1]
test_group_warnings_by_message_summary.py::test_foo[11-2]
test_group_warnings_by_message_summary.py::test_foo[11-3]
test_group_warnings_by_message_summary.py::test_foo[11-4]
test_group_warnings_by_message_summary.py::test_foo[12-0]
test_group_warnings_by_message_summary.py::test_foo[12-1]
test_group_warnings_by_message_summary.py::test_foo[12-2]
test_group_warnings_by_message_summary.py::test_foo[12-3]
test_group_warnings_by_message_summary.py::test_foo[12-4]
test_group_warnings_by_message_summary.py::test_foo[13-0]
test_group_warnings_by_message_summary.py::test_foo[13-1]
test_group_warnings_by_message_summary.py::test_foo[13-2]
test_group_warnings_by_message_summary.py::test_foo[13-3]
test_group_warnings_by_message_summary.py::test_foo[13-4]
test_group_warnings_by_message_summary.py::test_foo[14-0]
test_group_warnings_by_message_summary.py::test_foo[14-1]
test_group_warnings_by_message_summary.py::test_foo[14-2]
test_group_warnings_by_message_summary.py::test_foo[14-3]
test_group_warnings_by_message_summary.py::test_foo[14-4]
test_group_warnings_by_message_summary.py::test_foo[15-0]
test_group_warnings_by_message_summary.py::test_foo[15-1]
test_group_warnings_by_message_summary.py::test_foo[15-2]
test_group_warnings_by_message_summary.py::test_foo[15-3]
test_group_warnings_by_message_summary.py::test_foo[15-4]
test_group_warnings_by_message_summary.py::test_foo[16-0]
test_group_warnings_by_message_summary.py::test_foo[16-1]
test_group_warnings_by_message_summary.py::test_foo[16-2]
test_group_warnings_by_message_summary.py::test_foo[16-3]
test_group_warnings_by_message_summary.py::test_foo[16-4]
test_group_warnings_by_message_summary.py::test_foo[17-0]
test_group_warnings_by_message_summary.py::test_foo[17-1]
test_group_warnings_by_message_summary.py::test_foo[17-2]
test_group_warnings_by_message_summary.py::test_foo[17-3]
test_group_warnings_by_message_summary.py::test_foo[17-4]
test_group_warnings_by_message_summary.py::test_foo[18-0]
test_group_warnings_by_message_summary.py::test_foo[18-1]
test_group_warnings_by_message_summary.py::test_foo[18-2]
test_group_warnings_by_message_summary.py::test_foo[18-3]
test_group_warnings_by_message_summary.py::test_foo[18-4]
test_group_warnings_by_message_summary.py::test_foo[19-0]
test_group_warnings_by_message_summary.py::test_foo[19-1]
test_group_warnings_by_message_summary.py::test_foo[19-2]
test_group_warnings_by_message_summary.py::test_foo[19-3]
test_group_warnings_by_message_summary.py::test_foo[19-4]
test_group_warnings_by_message_summary.py::test_bar[0]
test_group_warnings_by_message_summary.py::test_bar[1]
test_group_warnings_by_message_summary.py::test_bar[2]
test_group_warnings_by_message_summary.py::test_bar[3]
test_group_warnings_by_message_summary.py::test_bar[4]
test_group_warnings_by_message_summary.py::test_bar[5]
test_group_warnings_by_message_summary.py::test_bar[6]
test_group_warnings_by_message_summary.py::test_bar[7]
test_group_warnings_by_message_summary.py::test_bar[8]
test_group_warnings_by_message_summary.py::test_bar[9]
test_group_warnings_by_message_summary.py::test_bar[10]
test_group_warnings_by_message_summary.py::test_bar[11]
test_group_warnings_by_message_summary.py::test_bar[12]
test_group_warnings_by_message_summary.py::test_bar[13]
test_group_warnings_by_message_summary.py::test_bar[14]
test_group_warnings_by_message_summary.py::test_bar[15]
test_group_warnings_by_message_summary.py::test_bar[16]
test_group_warnings_by_message_summary.py::test_bar[17]
test_group_warnings_by_message_summary.py::test_bar[18]
test_group_warnings_by_message_summary.py::test_bar[19]
/home/rpfannsc/Projects/pytest-dev/pytest/testing/example_scripts/warnings/test_group_warnings_by_message_summary.py:7: UserWarning: foo
warnings.warn(UserWarning("foo"))
-- Docs: https://docs.pytest.org/en/latest/warnings.html
=========================================================================================================== 120 passed, 120 warnings in 0.18s ============================================================================================================
should be more like
$ pytest --rootdir=$PWD --confcutdir=$PWD test_group_warnings_by_message_summary.py --tb no
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.7.6, pytest-5.3.1.dev56+g3107e6934.d20191207, py-1.8.0, pluggy-0.13.1
rootdir: /home/rpfannsc/Projects/pytest-dev/pytest/testing/example_scripts/warnings
plugins: hypothesis-4.46.0, forked-1.1.3, xdist-1.30.0
collected 120 items
test_group_warnings_by_message_summary.py ........................................................................................................................ [100%]
==================================================================================================================== warnings summary ====================================================================================================================
test_group_warnings_by_message_summary.py: 120 items warning with
/home/rpfannsc/Projects/pytest-dev/pytest/testing/example_scripts/warnings/test_group_warnings_by_message_summary.py:7: UserWarning: foo
warnings.warn(UserWarning("foo"))
-- Docs: https://docs.pytest.org/en/latest/warnings.html
=========================================================================================================== 120 passed, 120 warnings in 0.18s ============================================================================================================
cc @nicoddemus