Skip to content

Commit

Permalink
test_prototype_datasets_builtin: Properly close all streams (#7403)
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Meier <[email protected]>
  • Loading branch information
SvenDS9 and pmeier authored Mar 9, 2023
1 parent 6218dc3 commit 4a7def8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_prototype_datasets_builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def log_session_streams(self):
def test_stream_closing(self, log_session_streams, dataset_mock, config):
def make_msg_and_close(head):
unclosed_streams = []
for stream in StreamWrapper.session_streams.keys():
for stream in list(StreamWrapper.session_streams.keys()):
unclosed_streams.append(repr(stream.file_obj))
stream.close()
unclosed_streams = "\n".join(unclosed_streams)
Expand Down

0 comments on commit 4a7def8

Please sign in to comment.