From 25e5449e979a2d6ce653e9cc8a4e57377a79c4f2 Mon Sep 17 00:00:00 2001 From: Jasmin Bom Date: Wed, 30 Jan 2019 20:56:15 +0100 Subject: [PATCH] Fix TestDispatcher::test_error_handler using pytest >= 4.0 --- tests/test_dispatcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_dispatcher.py b/tests/test_dispatcher.py index b184558f0..790b45eb7 100644 --- a/tests/test_dispatcher.py +++ b/tests/test_dispatcher.py @@ -40,7 +40,10 @@ class TestDispatcher(object): received = None count = 0 - @pytest.fixture(autouse=True) + @pytest.fixture(autouse=True, name='reset') + def reset_fixture(self): + self.reset() + def reset(self): self.received = None self.count = 0