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 ...@@ -24,13 +24,15 @@ Caucase - Certificate Authority for Users, Certificate Authority for SErvices
from __future__ import absolute_import from __future__ import absolute_import
try: try:
import http.client as http_client 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 httplib as http_client
import json import json
import ssl import ssl
try: try:
from urllib.parse import urlparse from urllib.parse import urlparse
except ImportError: # BBB: py2.7 except ImportError: # pragma: no cover
# BBB: py2.7
from urlparse import urlparse from urlparse import urlparse
from cryptography import x509 from cryptography import x509
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.backends import default_backend
......
...@@ -35,7 +35,8 @@ import os ...@@ -35,7 +35,8 @@ import os
import socket import socket
try: try:
from socketserver import ThreadingMixIn from socketserver import ThreadingMixIn
except ImportError: # BBB: py2.7 except ImportError: # pragma: no cover
# BBB: py2.7
from SocketServer import ThreadingMixIn from SocketServer import ThreadingMixIn
import ssl import ssl
import sys import sys
...@@ -43,7 +44,8 @@ import tempfile ...@@ -43,7 +44,8 @@ import tempfile
from threading import Thread from threading import Thread
try: try:
from urllib.parse import urlparse, urlunsplit 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 urlparse import urlparse, urlunsplit
from wsgiref.simple_server import make_server, WSGIServer from wsgiref.simple_server import make_server, WSGIServer
import ipaddress 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