fix chunk test, which flaked out some percentage of the time reading
ebay.  Instead, test against httpbin, which is intended for this
purpose.
@@ -37,9 +37,10 @@ class SimpleQueryClass(object):
@remote_data
def test_chunk_read():
- response = urllib.request.urlopen('http://www.ebay.com')
+ datasize = 50000
+ response = urllib.request.urlopen('http://httpbin.org/stream-bytes/{0}'.format(datasize))
C = chunk_read(response, report_hook=chunk_report)
- print(C)
+ assert len(C) == datasize
def test_class_or_instance():
