From a8fdba15b12550a9bb08b1fa1e4d78b5d9508c1f Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Thu, 22 Oct 2015 12:25:05 +0100 Subject: [PATCH] Use py.test style assertions --- test_requests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_requests.py b/test_requests.py index 6caaef0d..3c8259ef 100755 --- a/test_requests.py +++ b/test_requests.py @@ -1136,8 +1136,8 @@ class TestRequests(object): with contextlib.closing(s.get(httpbin('stream/4'), stream=True)) as response: pass - self.assertFalse(response._content_consumed) - self.assertTrue(response.raw.closed) + assert not response._content_consumed is False + assert response.raw.closed @pytest.mark.xfail def test_response_iter_lines_reentrant(self, httpbin):