mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 02:43:43 +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':
|
if libname is None and platform.system() == 'Windows':
|
||||||
raise self.skipTest("can't import libpq on windows")
|
raise self.skipTest("can't import libpq on windows")
|
||||||
|
|
||||||
rv = ConnectingTestCase._libpq = ctypes.pydll.LoadLibrary(libname)
|
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
|
return rv
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user