Issue #134: use requests.get as a context manager
This commit is contained in:
@ -164,6 +164,12 @@ def test_download_works_for_examples(runner):
|
||||
def iter_content(self, *args, **kwargs):
|
||||
return [expected_bytes]
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
fout = io.BytesIO()
|
||||
fout.close = lambda: None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user