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