summarize warning summaries if the number of locations is high
This commit is contained in:
committed by
Ronny Pfannschmidt
parent
f77d606d4e
commit
23c43a37e0
@@ -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()
|
||||
Reference in New Issue
Block a user