mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 21:00:33 +03:00
Skip tests involving ctypes on Windows
No idea about how to import libpq.
This commit is contained in:
parent
7c7bbb9742
commit
3b7c083c3d
|
@ -185,6 +185,9 @@ class ConnectingTestCase(unittest.TestCase):
|
||||||
return ConnectingTestCase._libpq
|
return ConnectingTestCase._libpq
|
||||||
|
|
||||||
libname = find_library('pq')
|
libname = find_library('pq')
|
||||||
|
if libname is None and platform.system() == 'Windows':
|
||||||
|
raise self.skipTest("can't import libpq on windows")
|
||||||
|
|
||||||
rv = ConnectingTestCase._libpq = ctypes.pydll.LoadLibrary(libname)
|
rv = ConnectingTestCase._libpq = ctypes.pydll.LoadLibrary(libname)
|
||||||
return rv
|
return rv
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user