summarize warning summaries if the number of locations is high

This commit is contained in:
Ronny Pfannschmidt
2020-02-28 10:33:59 +01:00
committed by Ronny Pfannschmidt
parent f77d606d4e
commit 23c43a37e0
4 changed files with 63 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
import warnings
import pytest
def func():
warnings.warn(UserWarning("foo"))
@pytest.fixture(params=range(20), autouse=True)
def repeat_hack(request):
return request.param
@pytest.mark.parametrize("i", range(5))
def test_foo(i):
func()
def test_bar():
func()