Browse Source

Fix broken test_appcontext_signals test case

This fixes #781 and ensures that Flask is tested with blinker installed.
pull/1208/head
Daniel Neuhäuser 12 years ago
parent
commit
f88cc2d2f9
  1. 3
      .travis-devel-requirements.txt
  2. 3
      .travis-lowest-requirements.txt
  3. 2
      .travis-release-requirements.txt
  4. 7
      CHANGES
  5. 2
      flask/testsuite/signals.py
  6. 1
      tox.ini

3
.travis-devel-requirements.txt

@ -1,3 +1,6 @@
git+git://github.com/mitsuhiko/werkzeug.git#egg=Werkzeug git+git://github.com/mitsuhiko/werkzeug.git#egg=Werkzeug
git+git://github.com/mitsuhiko/jinja2.git#egg=Jinja2 git+git://github.com/mitsuhiko/jinja2.git#egg=Jinja2
git+git://github.com/mitsuhiko/itsdangerous.git#egg=itsdangerous git+git://github.com/mitsuhiko/itsdangerous.git#egg=itsdangerous
# extra dependencies
hg+http://bitbucket.org/jek/blinker#egg=blinker

3
.travis-lowest-requirements.txt

@ -1,3 +1,6 @@
Werkzeug==0.7 Werkzeug==0.7
Jinja2==2.4 Jinja2==2.4
itsdangerous==0.21 itsdangerous==0.21
# extra dependencies
blinker==1.0

2
.travis-release-requirements.txt

@ -0,0 +1,2 @@
# extra dependencies
blinker

7
CHANGES

@ -3,6 +3,13 @@ Flask Changelog
Here you can see the full list of changes between each Flask release. Here you can see the full list of changes between each Flask release.
Version 0.10.2
--------------
(bugfix release, release date to be announced)
- Fixed broken `test_appcontext_signals()` test case.
Version 0.10.1 Version 0.10.1
-------------- --------------

2
flask/testsuite/signals.py

@ -102,7 +102,7 @@ class SignalsTestCase(FlaskTestCase):
def record_push(sender, **kwargs): def record_push(sender, **kwargs):
recorded.append('push') recorded.append('push')
def record_pop(sender, **kwargs): def record_pop(sender, **kwargs):
recorded.append('push') recorded.append('pop')
@app.route('/') @app.route('/')
def index(): def index():

1
tox.ini

@ -3,4 +3,5 @@ envlist = py26, py27, pypy, py33
[testenv] [testenv]
deps = -egit+git://github.com/mitsuhiko/werkzeug.git#egg=werkzeug deps = -egit+git://github.com/mitsuhiko/werkzeug.git#egg=werkzeug
blinker
commands = python run-tests.py [] commands = python run-tests.py []

Loading…
Cancel
Save