From 5f540bbd3bc19d155123678b6a7f168ce070d632 Mon Sep 17 00:00:00 2001 From: Florian Obersteiner Date: Thu, 17 Feb 2022 15:41:50 +0100 Subject: [PATCH] need to use __file__ parent path for pytest --- tests/test_dataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_dataset.py b/tests/test_dataset.py index c8609f6..d07b1c7 100644 --- a/tests/test_dataset.py +++ b/tests/test_dataset.py @@ -6,7 +6,8 @@ import numpy as np import icartt # working directory, example files -wd, fns = pathlib.Path('.'), pathlib.Path('./examples').glob('*.ict') +wd = pathlib.Path(__file__).parent +fns = (wd/'examples').glob('*.ict') def compareFiles(fn, strIn, strOut, skiplines=0, nlines=-1): # pragma: no cover strOut.seek(0) -- GitLab