From aa478698d2463e2f94796e4f3e5c1a220c72c0b5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 May 2015 16:48:57 +0530 Subject: [PATCH] Remove spurious read --- src/calibre/srv/tests/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/tests/http.py b/src/calibre/srv/tests/http.py index da0028adee..8ee4ea4cf0 100644 --- a/src/calibre/srv/tests/http.py +++ b/src/calibre/srv/tests/http.py @@ -238,7 +238,7 @@ class TestHTTP(BaseTest): conn.request('GET', '/test', headers={'Range':'bytes=100000-'}) r = conn.getresponse() self.ae(type('')(r.getheader('Content-Range')), 'bytes */%d' % len(fdata)) - self.ae(r.status, httplib.REQUESTED_RANGE_NOT_SATISFIABLE), self.ae(r.read(), b'') + self.ae(r.status, httplib.REQUESTED_RANGE_NOT_SATISFIABLE) conn.request('GET', '/test', headers={'Range':'bytes=25-50', 'If-Range':etag}) r = conn.getresponse()