From: Michał Kępień Date: Tue, 18 Mar 2025 05:19:01 +0000 (+0100) Subject: Ignore .hypothesis files created by system tests X-Git-Tag: v9.21.7~47^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f413ddbe5f2edfdeedc41603dcd2afe105ed2844;p=thirdparty%2Fbind9.git Ignore .hypothesis files created by system tests Some versions of the Hypothesis Python library - notably the one included in stock OS repositories for Ubuntu 20.04 Focal Fossa - cause a .hypothesis file to be created in a Python script's working directory when the hypothesis module is present in its import chain. Ignore such files by adding them to the list of expected test artifacts to prevent pytest teardown checks from failing due to these files appearing in the file system after running system tests. --- diff --git a/bin/tests/system/conftest.py b/bin/tests/system/conftest.py index 8412611426c..7d41df48a0c 100644 --- a/bin/tests/system/conftest.py +++ b/bin/tests/system/conftest.py @@ -308,6 +308,7 @@ def logger(request, system_test_name): @pytest.fixture(scope="module") def expected_artifacts(request): common_artifacts = [ + "*/.hypothesis", # drop after Ubuntu 20.04 Focal Fossa gets removed from CI ".libs/*", # possible build artifacts, see GL #5055 "ns*/named.conf", "ns*/named.memstats",