Skip to content

Commit 467f3e9

Browse files
committed
ENH: item and report uses absolute vs relative paths, changing both to resolved Pathlib.
1 parent 59b7b25 commit 467f3e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nbval/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,16 +928,16 @@ def _indent(s, indent=' '):
928928
return s
929929

930930

931-
skip_modules = []
931+
skip_modules = set()
932932

933933

934934
@pytest.hookimpl(trylast=True)
935935
def pytest_runtest_logreport(report):
936936

937937
if 'failed' in report.outcome:
938-
skip_modules.append(report.fspath)
938+
skip_modules.add(Path(report.fspath).resolve())
939939

940940

941941
def pytest_runtest_call(item):
942-
if item.path in skip_modules:
942+
if Path(item.path) in skip_modules:
943943
pytest.skip(f"Due to the previous failure skipping rest of tests in {item.path}")

0 commit comments

Comments
 (0)