Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.io.video
Commits
23a6ad63
Commit
23a6ad63
authored
May 04, 2020
by
Amir MOHAMMADI
Browse files
Better message for memory leaks errors
parent
9b69a811
Pipeline
#39661
passed with stage
in 4 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/io/video/test.py
View file @
23a6ad63
...
...
@@ -123,7 +123,7 @@ def test_memory_leak():
first
=
psutil
.
virtual_memory
().
used
last
=
psutil
.
virtual_memory
().
used
assert
(
last
-
first
)
/
first
<
0.1
,
"Looks like we have a memory leak!"
assert
(
last
-
first
)
/
first
<
0.1
,
f
"Looks like we have a memory leak!
first:
{
first
}
last:
{
last
}
"
def
test_open_file_leak
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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