Skip to content
Myr

fix endline in the signal.py

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alexander Pantyukhin · committed by Markus Unterwaditzer · parent d53d5c7 · Browse files · 2 files+3 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−5 removed

  • tests:+2 added−4 removed
  • other:+1 added−1 removed

2 files+3 added−5 removed

modified:flask/signals.py+1 added-1 removed
51 unmodified lines
52got_request_exception = _signals.signal('got-request-exception')53appcontext_tearing_down = _signals.signal('appcontext-tearing-down')54appcontext_pushed = _signals.signal('appcontext-pushed')55appcontext_popped = _signals.signal('appcontext-popped')56message_flashed = _signals.signal('message-flashed')56message_flashed = _signals.signal('message-flashed')
modified:tests/test_signals.py+2 added-4 removed
57 unmodified lines
58 def record(sender, template, context):59 context['whiskey'] = 4360 recorded.append((template, context))6162 flask.before_render_template.connect(record, app)63 try:62 with flask.before_render_template.connected_to(record):63 rv = app.test_client().get('/')64 assert len(recorded) == 165 template, context = recorded[0]66 assert template.name == 'simple_template.html'67 assert context['whiskey'] == 4368 assert rv.data == b'<h1>43</h1>'70 finally:71 flask.before_render_template.disconnect(record, app)697071def test_request_signals():72 app = flask.Flask(__name__)73 calls = []74
126 unmodified lines