We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b496498 commit 5d538a2Copy full SHA for 5d538a2
1 file changed
nbval/plugin.py
@@ -928,16 +928,16 @@ def _indent(s, indent=' '):
928
return s
929
930
931
-skip_modules = []
+skip_modules = set()
932
933
934
@pytest.hookimpl(trylast=True)
935
def pytest_runtest_logreport(report):
936
937
if 'failed' in report.outcome:
938
- skip_modules.append(report.fspath)
+ skip_modules.add(Path(report.fspath).resolve())
939
940
941
def pytest_runtest_call(item):
942
- if item.path in skip_modules:
+ if Path(item.path) in skip_modules:
943
pytest.skip(f"Due to the previous failure skipping rest of tests in {item.path}")
0 commit comments