Skip to content

Commit 1a17e10

Browse files
tweak abinit test to allow for small differences in floating point precision
1 parent 69f75bd commit 1a17e10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/abinit/conftest.py

+4
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ def check_equivalent_znucl_typat(
189189
{count_sorted_znucl_a} vs. {count_sorted_znucl_b}"
190190
)
191191

192+
for fp_key in ("tsmear",):
193+
if (ref_val := ref.datasets[0].get(fp_key)) is not None:
194+
assert user.datasets[0].get(fp_key) == pytest.approx(ref_val)
195+
192196

193197
def check_abinit_input_json(ref_path: str | Path):
194198
from abipy.abio.inputs import AbinitInput

0 commit comments

Comments
 (0)