mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-03 15:45:46 +03:00
When compiled with libpq version < 10, it raises 'psycopg2.NotSupportedError' (not, psycopg2.ProgrammingError).
This commit is contained in:
parent
78eb80d0cf
commit
2c1966a7f6
|
@ -1404,7 +1404,7 @@ class TransactionControlTests(ConnectingTestCase):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.assertRaises(
|
self.assertRaises(
|
||||||
psycopg2.ProgrammingError,
|
psycopg2.NotSupportedError,
|
||||||
self.conn.encrypt_password, 'psycopg2', 'ashesh'
|
self.conn.encrypt_password, 'psycopg2', 'ashesh'
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user