mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
Allow libpq tests to fail
They fail on image build when we delete the system library.
This commit is contained in:
parent
ec531bee31
commit
367ea40b1e
|
@ -178,7 +178,10 @@ class ConnectingTestCase(unittest.TestCase):
|
|||
if libname is None and platform.system() == 'Windows':
|
||||
raise self.skipTest("can't import libpq on windows")
|
||||
|
||||
try:
|
||||
rv = ConnectingTestCase._libpq = ctypes.pydll.LoadLibrary(libname)
|
||||
except OSError as e:
|
||||
raise self.skipTest("couldn't open libpq for testing: %s" % e)
|
||||
return rv
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user