mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +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
 | 
			
		||||
 | 
			
		||||
        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)
 | 
			
		||||
        return rv
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user