summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-16 12:11:39 -0500
committerTim Graham <timograham@gmail.com>2015-02-16 18:07:27 -0500
commit3adc5f1ee6618a615db07d4a868b366a15c39f82 (patch)
tree45e0265a40f9bd038bca06d0d5d05d8db29c3b4c /tests
parent664c038f2c5b56d1ce929243d29cd4e11ea5f9ea (diff)
Fixed #24335 -- Bumped required psycopg2 version to 2.4.5 (2.5 for contrib.postgres).
Diffstat (limited to 'tests')
-rw-r--r--tests/backends/tests.py6
-rw-r--r--tests/requirements/postgres.txt2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py
index 52c6d44051..fcd165146e 100644
--- a/tests/backends/tests.py
+++ b/tests/backends/tests.py
@@ -289,14 +289,14 @@ class PostgreSQLTests(TestCase):
self.assertIn('::text', do.lookup_cast(lookup))
def test_correct_extraction_psycopg2_version(self):
- from django.db.backends.postgresql_psycopg2.base import DatabaseWrapper
+ from django.db.backends.postgresql_psycopg2.base import psycopg2_version
version_path = 'django.db.backends.postgresql_psycopg2.base.Database.__version__'
with mock.patch(version_path, '2.6.9'):
- self.assertEqual(DatabaseWrapper.psycopg2_version.__get__(self), (2, 6, 9))
+ self.assertEqual(psycopg2_version(), (2, 6, 9))
with mock.patch(version_path, '2.5.dev0'):
- self.assertEqual(DatabaseWrapper.psycopg2_version.__get__(self), (2, 5))
+ self.assertEqual(psycopg2_version(), (2, 5))
class DateQuotingTest(TestCase):
diff --git a/tests/requirements/postgres.txt b/tests/requirements/postgres.txt
index 658130bb2c..4ff5f170a9 100644
--- a/tests/requirements/postgres.txt
+++ b/tests/requirements/postgres.txt
@@ -1 +1 @@
-psycopg2
+psycopg2>=2.5