-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Labels
choreOther changes that don't modify src or test filesOther changes that don't modify src or test fileshelp wantedExtra attention is needed / contributions welcomeExtra attention is needed / contributions welcometestspytestpytest
Description
In PR #1773 it was noticed that resulted in pytest.PytestUnraisableExceptionWarning:Exception ignored in: <_io.FileIO [closed]>
warnings from opening files like
Line 427 in b091985
spec = json.load(open(datadir.join("workspace_integer_data.json"))) |
which can be avoid by using a context manager to properly close the file like
Lines 424 to 425 in c2c2891
with open(datadir.join("workspace_integer_data.json")) as spec_file: | |
spec = json.load(spec_file) |
If this is implemented everywhere in the tests, then the warning ignore of
Line 85 in c2c2891
'ignore: Exception ignored in:pytest.PytestUnraisableExceptionWarning', #FIXME: Exception ignored in: <_io.FileIO [closed]> |
can be removed.
Metadata
Metadata
Assignees
Labels
choreOther changes that don't modify src or test filesOther changes that don't modify src or test fileshelp wantedExtra attention is needed / contributions welcomeExtra attention is needed / contributions welcometestspytestpytest