mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-01 06:50:34 +03:00
Silence warning on import failing a test
This commit is contained in:
parent
7e16a37476
commit
0a148dbe01
|
@ -1550,9 +1550,13 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import signal
|
import signal
|
||||||
|
import warnings
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
import psycopg2
|
# ignore wheel deprecation warning
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter('ignore')
|
||||||
|
import psycopg2
|
||||||
|
|
||||||
def handle_sigabort(sig, frame):
|
def handle_sigabort(sig, frame):
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user