Skip to content
Myr

Removed useless import and adapted tests

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 9248a7b · Browse files · 2 files+3 added−4 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−4 removed

  • tests:+3 added−3 removed
  • other:+0 added−1 removed

2 files+3 added−4 removed

modified:tests/flask_tests.py+3 added-3 removed
253 unmodified lines
254 assert flask.url_for('static', filename='index.html') \255 == '/static/index.html'256257 def test_none_response(self):258 warnings.filterwarnings('error', 'View function did not return')258 app = flask.Flask(__name__)259 @app.route('/')260 def test():261 return None262 try:263 app.test_client().get('/')265 except Warning:264 except ValueError, e:265 assert str(e) == 'View function did not return a response'266 pass267 else:268 assert "Expected warning"268 assert "Expected ValueError"269270271class JSONTestCase(unittest.TestCase):272
127 unmodified lines
modified:flask.py-1 removed
10 unmodified lines
11"""12from __future__ import with_statement13import os14import sys15import types15from datetime import datetime, timedelta1617from jinja2 import Environment, PackageLoader, FileSystemLoader18from werkzeug import Request as RequestBase, Response as ResponseBase, \
832 unmodified lines