Unverified Commit 4a7def80 authored by SvenDS9's avatar SvenDS9 Committed by GitHub
Browse files

test_prototype_datasets_builtin: Properly close all streams (#7403)


Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
parent 6218dc3a
...@@ -123,7 +123,7 @@ class TestCommon: ...@@ -123,7 +123,7 @@ class TestCommon:
def test_stream_closing(self, log_session_streams, dataset_mock, config): def test_stream_closing(self, log_session_streams, dataset_mock, config):
def make_msg_and_close(head): def make_msg_and_close(head):
unclosed_streams = [] unclosed_streams = []
for stream in StreamWrapper.session_streams.keys(): for stream in list(StreamWrapper.session_streams.keys()):
unclosed_streams.append(repr(stream.file_obj)) unclosed_streams.append(repr(stream.file_obj))
stream.close() stream.close()
unclosed_streams = "\n".join(unclosed_streams) unclosed_streams = "\n".join(unclosed_streams)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment