Browse Source

Import with statement in testsuite, Python 2.5.

pull/309/merge
Ron DuPlain 14 years ago
parent
commit
37f9cb9ca6
  1. 2
      flask/testing.py
  2. 3
      flask/testsuite/__init__.py
  3. 3
      flask/testsuite/basic.py
  4. 3
      flask/testsuite/blueprints.py
  5. 3
      flask/testsuite/deprecations.py
  6. 3
      flask/testsuite/helpers.py
  7. 3
      flask/testsuite/templating.py
  8. 3
      flask/testsuite/testing.py

2
flask/testing.py

@ -10,6 +10,8 @@
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """
from __future__ import with_statement
from contextlib import contextmanager from contextlib import contextmanager
from werkzeug.test import Client, EnvironBuilder from werkzeug.test import Client, EnvironBuilder
from flask import _request_ctx_stack from flask import _request_ctx_stack

3
flask/testsuite/__init__.py

@ -9,6 +9,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """
from __future__ import with_statement
import os import os
import sys import sys
import flask import flask

3
flask/testsuite/basic.py

@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """
from __future__ import with_statement
import re import re
import flask import flask
import unittest import unittest

3
flask/testsuite/blueprints.py

@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """
from __future__ import with_statement
import flask import flask
import unittest import unittest
import warnings import warnings

3
flask/testsuite/deprecations.py

@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """
from __future__ import with_statement
import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase, catch_warnings from flask.testsuite import FlaskTestCase, catch_warnings

3
flask/testsuite/helpers.py

@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """
from __future__ import with_statement
import os import os
import flask import flask
import unittest import unittest

3
flask/testsuite/templating.py

@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """
from __future__ import with_statement
import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase from flask.testsuite import FlaskTestCase

3
flask/testsuite/testing.py

@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """
from __future__ import with_statement
import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase from flask.testsuite import FlaskTestCase

Loading…
Cancel
Save