Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
0.20.0 (UNRELEASED)
-------------------

- cleanup reminders will now only be printed for verbosity
levels equal or greater than 1


0.19.0 (2022-05-23)
-------------------

Expand Down
12 changes: 7 additions & 5 deletions xprocess/pytest_xprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ def pytest_runtest_makereport(item, call):


def pytest_unconfigure(config):
print(
"pytest-xprocess reminder::Be sure to terminate the started process by running "
"'pytest --xkill' if you have not explicitly done so in your fixture with "
"'xprocess.getinfo(<process_name>).terminate()'."
)
verbosity_level = config.getoption("verbose")
if verbosity_level >= 1:
print(
"pytest-xprocess reminder::Be sure to terminate the started process "
"by running 'pytest --xkill' if you have not explicitly done so in your "
"fixture with 'xprocess.getinfo(<process_name>).terminate()'."
)


def pytest_configure(config):
Expand Down