From 048e33cb23b06f1b6d315b124ee544147d520643 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Wed, 26 Jun 2024 14:51:12 +0100
Subject: [PATCH] TEST: Some kind of regression in pytest 8.2 w.r.t. namespace
 packages

---
 .ci/test_template.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.ci/test_template.sh b/.ci/test_template.sh
index 711a66604..9a2db07c8 100644
--- a/.ci/test_template.sh
+++ b/.ci/test_template.sh
@@ -21,6 +21,11 @@ rsync -rv "fsldownload:$FSL_ATLAS_DIR" "$FSLDIR/data/atlases/"
 # reporting until after we're finished.
 TEST_OPTS="--cov-report= --cov-append"
 
+# pytest struggles with my organisation of
+# the fslpy package, where all tests are in
+# fsl.tests, and fsl is a namespace package
+touch fsl/__init__.py
+
 # We run some tests under xvfb-run
 # because they invoke wx. Sleep in
 # between, otherwise xvfb gets upset.
-- 
GitLab