diff options
author | Rainer Jung <rjung@apache.org> | 2024-07-16 00:34:32 +0200 |
---|---|---|
committer | Rainer Jung <rjung@apache.org> | 2024-07-16 00:34:32 +0200 |
commit | f889bcb2285adfbfd3bc01ecc5c6764778c12953 (patch) | |
tree | 094cdc8c60aad754e58dbff4652b07c02b50b436 /test/modules/core/conftest.py | |
parent | copy the trusted flag from the subrequest (diff) | |
download | apache2-f889bcb2285adfbfd3bc01ecc5c6764778c12953.tar.xz apache2-f889bcb2285adfbfd3bc01ecc5c6764778c12953.zip |
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
Diffstat (limited to 'test/modules/core/conftest.py')
-rw-r--r-- | test/modules/core/conftest.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |