Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
fcc3c8fd
Commit
fcc3c8fd
authored
Mar 22, 2019
by
Samuel GAIST
Browse files
[test][conftest] Handle multiple calls to beat.core teardown
parent
dc6d79b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/test/conftest.py
View file @
fcc3c8fd
...
...
@@ -60,4 +60,10 @@ def test_prefix():
# corresponding tear down, therefore trigger it manually
beat_core_test
=
importlib
.
import_module
(
"beat.core.test"
)
teardown_package
=
getattr
(
beat_core_test
,
"teardown_package"
)
teardown_package
()
try
:
teardown_package
()
except
FileNotFoundError
:
# Only needed once because that prefix is generated on call of the
# resource_filename of beat.core.test
pass
Write
Preview
Supports
Markdown
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