When compiled with libpq version < 10, it raises 'psycopg2.NotSupportedError' (not, psycopg2.ProgrammingError).

This commit is contained in:
Ashesh Vashi 2017-07-17 11:06:55 +05:30
parent 78eb80d0cf
commit 2c1966a7f6

View File

@ -1404,7 +1404,7 @@ class TransactionControlTests(ConnectingTestCase):
)
else:
self.assertRaises(
psycopg2.ProgrammingError,
psycopg2.NotSupportedError,
self.conn.encrypt_password, 'psycopg2', 'ashesh'
)
else: