Skip to content

Commit

Permalink
add missing urllib submodules imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaetano Guerriero committed Jan 28, 2022
1 parent 8e43199 commit 2d79d34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pydruid/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
#
import json
import re
import urllib
import urllib.error
import urllib.request
from base64 import b64encode

from pydruid.query import QueryBuilder
Expand Down
6 changes: 3 additions & 3 deletions tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: UTF-8 -*-
import textwrap
import urllib
import urllib.error
from io import StringIO
from unittest.mock import Mock, patch

Expand Down Expand Up @@ -89,8 +89,8 @@ def test_druid_returns_html_error(self, mock_urlopen):
str(e.value)
== textwrap.dedent(
"""
HTTP Error 500: Internal Server Error
Druid Error: javax.servlet.ServletException: java.lang.OutOfMemoryError: GC overhead limit exceeded
HTTP Error 500: Internal Server Error
Druid Error: javax.servlet.ServletException: java.lang.OutOfMemoryError: GC overhead limit exceeded
Query is: {
"aggregations": [
{
Expand Down

0 comments on commit 2d79d34

Please sign in to comment.