From f413ddbe5f2edfdeedc41603dcd2afe105ed2844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Tue, 18 Mar 2025 06:19:01 +0100 Subject: [PATCH] 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. --- bin/tests/system/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/tests/system/conftest.py b/bin/tests/system/conftest.py index 8412611426..7d41df48a0 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",