mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
Fix TestDispatcher::test_error_handler using pytest >= 4.0
This commit is contained in:
parent
a8bade4d73
commit
25e5449e97
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue