From ff60e4df1917d502cc4e94e4a4dc7887a256ad8e Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Fri, 5 Mar 2021 19:31:29 +0000
Subject: [PATCH] TEST: Evidently you can't use __file__ of a native namespace
 package. Makes sense I guess

---
 tests/test_fslsub.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_fslsub.py b/tests/test_fslsub.py
index 1268a67f5..026cb66d8 100644
--- a/tests/test_fslsub.py
+++ b/tests/test_fslsub.py
@@ -15,7 +15,7 @@ import contextlib
 import argparse
 import pytest
 
-import fsl
+import fsl.version as fv
 from fsl.utils         import fslsub, run
 from fsl.utils.tempdir import tempdir
 
@@ -63,7 +63,7 @@ with open('{{}}.o{{}}'.format(cmd, jobid), 'w') as stdout, \
 
 print(str(jobid))
 sys.exit(0)
-""".format(op.dirname(fsl.__file__)).strip()
+""".format(op.dirname(op.join(fv.__file__, '..'))).strip()
 
 @contextlib.contextmanager
 def fslsub_mockFSLDIR():
-- 
GitLab