From eff7367fb34242d332d60e6cfa9fca85fcb87a67 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Tue, 4 Feb 2020 22:25:07 +0100 Subject: [PATCH] Use an exception to ask confirmation --- .../conftest.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/certbot-ci/windows_installer_integration_tests/conftest.py b/certbot-ci/windows_installer_integration_tests/conftest.py index 1146ce256..410147609 100644 --- a/certbot-ci/windows_installer_integration_tests/conftest.py +++ b/certbot-ci/windows_installer_integration_tests/conftest.py @@ -34,16 +34,5 @@ def pytest_configure(config): :param config: the current pytest configuration """ if not config.option.confirm: - capture_manager = config.pluginmanager.getplugin('capturemanager') - try: - capture_manager.suspendcapture(in_=True) - - print('++ WARNING ++') - print('-------------') - print('This integration test will install Certbot on your machine.') - print('At the end of the test you will need to manually uninstall it.') - print('-------------') - - input('Please press ENTER to continue, or CTRL+C to cancel.') - finally: - capture_manager.resumecapture() + raise RuntimeError('This integration test would install Certbot on your machine. ' + 'Please run it again with the `--confirm` flag set to acknowledge.')