Commit d594e0bb authored by Vincent Pelletier's avatar Vincent Pelletier

caucase.{client,http}: Trivial coverage improvement.

parent a44aed3d
......@@ -24,13 +24,15 @@ Caucase - Certificate Authority for Users, Certificate Authority for SErvices
from __future__ import absolute_import
try:
import http.client as http_client
except ImportError: # BBB: py2.7
except ImportError: # pragma: no cover
# BBB: py2.7
import httplib as http_client
import json
import ssl
try:
from urllib.parse import urlparse
except ImportError: # BBB: py2.7
except ImportError: # pragma: no cover
# BBB: py2.7
from urlparse import urlparse
from cryptography import x509
from cryptography.hazmat.backends import default_backend
......
......@@ -35,7 +35,8 @@ import os
import socket
try:
from socketserver import ThreadingMixIn
except ImportError: # BBB: py2.7
except ImportError: # pragma: no cover
# BBB: py2.7
from SocketServer import ThreadingMixIn
import ssl
import sys
......@@ -43,7 +44,8 @@ import tempfile
from threading import Thread
try:
from urllib.parse import urlparse, urlunsplit
except ImportError: # BBB: py2.7
except ImportError: # pragma: no cover
# BBB: py2.7
from urlparse import urlparse, urlunsplit
from wsgiref.simple_server import make_server, WSGIServer
import ipaddress
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment