We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6f4040 commit 69f75bdCopy full SHA for 69f75bd
tests/abinit/conftest.py
@@ -130,9 +130,9 @@ def check_run_abi(ref_path: str | Path):
130
131
user = AbinitInputFile.from_file("run.abi")
132
assert user.ndtset == 1, f"'run.abi' has multiple datasets (ndtset={user.ndtset})."
133
- with zopen(ref_path / "inputs" / "run.abi.gz") as file:
+ with zopen(ref_path / "inputs" / "run.abi.gz", "rt", encoding="utf-8") as file:
134
ref_str = file.read()
135
- ref = AbinitInputFile.from_string(ref_str.decode("utf-8"))
+ ref = AbinitInputFile.from_string(ref_str)
136
# Ignore the pseudos as the directory depends on the pseudo root directory
137
# diffs = user.get_differences(ref, ignore_vars=["pseudos"])
138
diffs = _get_differences_tol(user, ref, ignore_vars=["pseudos"])
0 commit comments