From 33f1e9086f1ccdba47b12b13dcd8972540840527 Mon Sep 17 00:00:00 2001 From: Pierre Raybaut Date: Sun, 22 Oct 2023 20:01:49 +0200 Subject: [PATCH] guitest: do not import "conftest.py" (pytest cfg) --- guidata/guitest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guidata/guitest.py b/guidata/guitest.py index 08eaf74..a0bcf67 100644 --- a/guidata/guitest.py +++ b/guidata/guitest.py @@ -82,7 +82,11 @@ def get_tests(package, category: str) -> list[TestModule]: for root, _dirs, files in os.walk(test_path): for fname in files: path = osp.join(root, fname) - if fname.endswith((".py", ".pyw")) and not fname.startswith("_"): + if ( + fname.endswith((".py", ".pyw")) + and not fname.startswith("_") + and fname != "conftest.py" + ): test = TestModule(test_package, path) if ( category == "all"