diff options
Diffstat (limited to '')
-rw-r--r-- | tests/test_events.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_events.py b/tests/test_events.py index d850a91..5097dc8 100644 --- a/tests/test_events.py +++ b/tests/test_events.py @@ -9,11 +9,11 @@ from sphinx.events import EventManager def test_event_priority(): result = [] events = EventManager(object()) # pass an dummy object as an app - events.connect('builder-inited', lambda app: result.append(1), priority = 500) - events.connect('builder-inited', lambda app: result.append(2), priority = 500) - events.connect('builder-inited', lambda app: result.append(3), priority = 200) # earlier - events.connect('builder-inited', lambda app: result.append(4), priority = 700) # later - events.connect('builder-inited', lambda app: result.append(5), priority = 500) + events.connect('builder-inited', lambda app: result.append(1), priority=500) + events.connect('builder-inited', lambda app: result.append(2), priority=500) + events.connect('builder-inited', lambda app: result.append(3), priority=200) # earlier + events.connect('builder-inited', lambda app: result.append(4), priority=700) # later + events.connect('builder-inited', lambda app: result.append(5), priority=500) events.emit('builder-inited') assert result == [3, 1, 2, 5, 4] |