Skip to content
Myr

Use py.test style assertions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent 3bc189b · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:test_requests.py+2 added-2 removed
1134 unmodified lines
11351136 with contextlib.closing(s.get(httpbin('stream/4'), stream=True)) as response:1137 pass11381139 self.assertFalse(response._content_consumed)1140 self.assertTrue(response.raw.closed)1139 assert not response._content_consumed is False1140 assert response.raw.closed11411142 @pytest.mark.xfail1143 def test_response_iter_lines_reentrant(self, httpbin):1144 """Response.iter_lines() is not reentrant safe"""
603 unmodified lines