Skip to content

Commit

Permalink
guitest: do not import "conftest.py" (pytest cfg)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Oct 22, 2023
1 parent a374975 commit 33f1e90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion guidata/guitest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 33f1e90

Please sign in to comment.