(self, *args, **kwargs)
| 156 | |
| 157 | @contextlib.contextmanager |
| 158 | def urlretrieve(self, *args, **kwargs): |
| 159 | resource = args[0] |
| 160 | with socket_helper.transient_internet(resource): |
| 161 | file_location, info = urllib.request.urlretrieve(*args, **kwargs) |
| 162 | try: |
| 163 | yield file_location, info |
| 164 | finally: |
| 165 | os_helper.unlink(file_location) |
| 166 | |
| 167 | def test_basic(self): |
| 168 | # Test basic functionality. |
no test coverage detected