Skip to content

Commit

Permalink
Fix test issue where warning was being raised but not captured
Browse files Browse the repository at this point in the history
  • Loading branch information
samaloney committed Apr 4, 2024
1 parent 4dbc2da commit af9ffb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parfive/tests/test_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,10 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

def run(self):
self.result = self._target(*self._args, **self._kwargs)
try:
self.result = self._target(*self._args, **self._kwargs)
finally:
del self._target, self._args, self._kwargs


@skip_windows
Expand Down

0 comments on commit af9ffb0

Please sign in to comment.