Silence warning on import failing a test

This commit is contained in:
Daniele Varrazzo 2018-01-29 00:45:40 +00:00
parent 7e16a37476
commit 0a148dbe01

View File

@ -1550,9 +1550,13 @@ import os
import sys
import time
import signal
import warnings
import threading
import psycopg2
# ignore wheel deprecation warning
with warnings.catch_warnings():
warnings.simplefilter('ignore')
import psycopg2
def handle_sigabort(sig, frame):
sys.exit(1)