Skip to content

Commit 69f75bd

Browse files
add some debugging to abinit tests
1 parent d6f4040 commit 69f75bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/abinit/conftest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def check_run_abi(ref_path: str | Path):
130130

131131
user = AbinitInputFile.from_file("run.abi")
132132
assert user.ndtset == 1, f"'run.abi' has multiple datasets (ndtset={user.ndtset})."
133-
with zopen(ref_path / "inputs" / "run.abi.gz") as file:
133+
with zopen(ref_path / "inputs" / "run.abi.gz", "rt", encoding="utf-8") as file:
134134
ref_str = file.read()
135-
ref = AbinitInputFile.from_string(ref_str.decode("utf-8"))
135+
ref = AbinitInputFile.from_string(ref_str)
136136
# Ignore the pseudos as the directory depends on the pseudo root directory
137137
# diffs = user.get_differences(ref, ignore_vars=["pseudos"])
138138
diffs = _get_differences_tol(user, ref, ignore_vars=["pseudos"])

0 commit comments

Comments
 (0)