Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Python/Examples/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ def __init__(

def _parse_hash_file(file: Path) -> Dict[str, str]:
res = {}
for line in file.open():
if line.strip() == "" or line.strip().startswith("#"):
continue
key, h = line.strip().split(":", 1)
res[key.strip()] = h.strip()
with file.open() as f:
for line in f:
if line.strip() == "" or line.strip().startswith("#"):
continue
key, h = line.strip().split(":", 1)
res[key.strip()] = h.strip()
return res


Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ markers =
edm4hep
odd
hepmc3
filterwarnings =
error
Loading