mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-10-30 23:37:29 +03:00 
			
		
		
		
	Silence warning on import failing a test
This commit is contained in:
		
							parent
							
								
									5b69adf797
								
							
						
					
					
						commit
						76f3e196d3
					
				|  | @ -1549,8 +1549,12 @@ import os | ||||||
| import sys | import sys | ||||||
| import time | import time | ||||||
| import signal | import signal | ||||||
|  | import warnings | ||||||
| import threading | import threading | ||||||
| 
 | 
 | ||||||
|  | # ignore wheel deprecation warning | ||||||
|  | with warnings.catch_warnings(): | ||||||
|  |     warnings.simplefilter('ignore') | ||||||
|     import psycopg2 |     import psycopg2 | ||||||
| 
 | 
 | ||||||
| def handle_sigabort(sig, frame): | def handle_sigabort(sig, frame): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user