Fix TestDispatcher::test_error_handler using pytest >= 4.0

This commit is contained in:
Jasmin Bom 2019-01-30 20:56:15 +01:00
parent a8bade4d73
commit 25e5449e97

View file

@ -40,7 +40,10 @@ class TestDispatcher(object):
received = None received = None
count = 0 count = 0
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True, name='reset')
def reset_fixture(self):
self.reset()
def reset(self): def reset(self):
self.received = None self.received = None
self.count = 0 self.count = 0