From 2c1966a7f61e6623798395c02a8bce5027e258f7 Mon Sep 17 00:00:00 2001 From: Ashesh Vashi Date: Mon, 17 Jul 2017 11:06:55 +0530 Subject: [PATCH] When compiled with libpq version < 10, it raises 'psycopg2.NotSupportedError' (not, psycopg2.ProgrammingError). --- tests/test_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index b9944ae8..5894f1d2 100755 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1404,7 +1404,7 @@ class TransactionControlTests(ConnectingTestCase): ) else: self.assertRaises( - psycopg2.ProgrammingError, + psycopg2.NotSupportedError, self.conn.encrypt_password, 'psycopg2', 'ashesh' ) else: