Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
4a7def80
Unverified
Commit
4a7def80
authored
Mar 09, 2023
by
SvenDS9
Committed by
GitHub
Mar 09, 2023
Browse files
test_prototype_datasets_builtin: Properly close all streams (#7403)
Co-authored-by:
Philip Meier
<
github.pmeier@posteo.de
>
parent
6218dc3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_prototype_datasets_builtin.py
test/test_prototype_datasets_builtin.py
+1
-1
No files found.
test/test_prototype_datasets_builtin.py
View file @
4a7def80
...
...
@@ -123,7 +123,7 @@ class TestCommon:
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment