Commit 2bc35cf3 by Sébastien Eustace

Add temporary pytest-sugar workaround

parent bbab4e66
...@@ -12,6 +12,17 @@ from poetry.utils._compat import Path ...@@ -12,6 +12,17 @@ from poetry.utils._compat import Path
from poetry.utils.toml_file import TomlFile from poetry.utils.toml_file import TomlFile
def pytest_configure():
workaround_sugar_issue_159()
def workaround_sugar_issue_159():
"https://github.com/Frozenball/pytest-sugar/159"
import pytest_sugar
pytest_sugar.SugarTerminalReporter.pytest_runtest_logfinish = lambda self: None
@pytest.fixture @pytest.fixture
def config(): # type: () -> Config def config(): # type: () -> Config
with tempfile.NamedTemporaryFile() as f: with tempfile.NamedTemporaryFile() as f:
......
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