summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-11-28 06:03:46 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2017-11-28 06:03:46 -0800
commit4c95668c720d2314d89f7a94e782611e1dfb768f (patch)
tree1fe813e4d5d0bb05578b47d272cea5e068375ff1 /tests
parent914ccbacb5a21bd1f7f0bbdc32b01d73bea6dd4e (diff)
downloadpsycopg2-4c95668c720d2314d89f7a94e782611e1dfb768f.tar.gz
Remove "from __future__ import with_statement"
All versions of Python supported by psycopg2 have builtin support for the with statement. The import is unnecessary noise.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_types_extras.py1
-rwxr-xr-xtests/test_with.py3
2 files changed, 0 insertions, 4 deletions
diff --git a/tests/test_types_extras.py b/tests/test_types_extras.py
index a5aa7d2..6d842d8 100755
--- a/tests/test_types_extras.py
+++ b/tests/test_types_extras.py
@@ -13,7 +13,6 @@
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
-from __future__ import with_statement
import re
import sys
diff --git a/tests/test_with.py b/tests/test_with.py
index e5c0bc2..53dfa46 100755
--- a/tests/test_with.py
+++ b/tests/test_with.py
@@ -22,9 +22,6 @@
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
-
-from __future__ import with_statement
-
import psycopg2
import psycopg2.extensions as ext