From f889bcb2285adfbfd3bc01ecc5c6764778c12953 Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Mon, 15 Jul 2024 22:34:32 +0000 Subject: Make sure pytest shuts down the web server after each package git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919265 13f79535-47bb-0310-9956-ffa450edef68 --- test/modules/core/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/modules/core/conftest.py') diff --git a/test/modules/core/conftest.py b/test/modules/core/conftest.py index 22906efbb0..a14bdfb675 100644 --- a/test/modules/core/conftest.py +++ b/test/modules/core/conftest.py @@ -28,3 +28,8 @@ def env(pytestconfig) -> CoreTestEnv: env.apache_access_log_clear() env.httpd_error_log.clear_log() return env + +@pytest.fixture(autouse=True, scope="package") +def _stop_package_scope(env): + yield + assert env.apache_stop() == 0 -- cgit v1.2.3