Merge branch 'master' into module-support

This commit is contained in:
Armin Ronacher 2010-05-03 20:00:42 +02:00
commit 9da5795d79
3 changed files with 6 additions and 7 deletions

View file

@ -255,17 +255,17 @@ class BasicFunctionalityTestCase(unittest.TestCase):
== '/static/index.html'
def test_none_response(self):
warnings.filterwarnings('error', 'View function did not return')
app = flask.Flask(__name__)
@app.route('/')
def test():
return None
try:
app.test_client().get('/')
except Warning:
except ValueError, e:
assert str(e) == 'View function did not return a response'
pass
else:
assert "Expected warning"
assert "Expected ValueError"
class JSONTestCase(unittest.TestCase):