@@ -23,7 +23,7 @@ def compress(data):
23
23
24
24
25
25
else :
26
- from gzip import compress , decompress
26
+ from gzip import compress
27
27
28
28
29
29
def create_client (headers = None ):
@@ -76,8 +76,10 @@ def test_druid_returns_html_error(self, mock_urlopen):
76
76
<body>
77
77
<h2>HTTP ERROR: 500</h2>
78
78
<p>Problem accessing /druid/v2/. Reason:
79
- <pre> javax.servlet.ServletException: java.lang.OutOfMemoryError: GC overhead limit exceeded</pre></p>
80
- <hr /><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.3.19.v20170502</a><hr/>
79
+ <pre> javax.servlet.ServletException: java.lang.OutOfMemoryError: GC
80
+ overhead limit exceeded</pre></p>
81
+ <hr /><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.3.19.v20170502
82
+ </a><hr/>
81
83
</body>
82
84
</html>
83
85
"""
@@ -104,7 +106,8 @@ def test_druid_returns_html_error(self, mock_urlopen):
104
106
== textwrap .dedent (
105
107
"""
106
108
HTTP Error 500: Internal Server Error
107
- Druid Error: javax.servlet.ServletException: java.lang.OutOfMemoryError: GC overhead limit exceeded
109
+ Druid Error: javax.servlet.ServletException: java.lang.OutOfMemoryError: GC
110
+ overhead limit exceeded
108
111
Query is: {
109
112
"aggregations": [
110
113
{
@@ -201,7 +204,8 @@ def test_client_allows_to_export_last_query(self, mock_urlopen):
201
204
)
202
205
203
206
# when / then
204
- # assert that last_query.export_tsv method was called (it should throw an exception, given empty path)
207
+ # assert that last_query.export_tsv method was called (it should throw an
208
+ # exception, given empty path)
205
209
with pytest .raises (TypeError ):
206
210
client .export_tsv (None )
207
211
0 commit comments