Skip to content

Commit

Permalink
introduce xfail for timing test for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Jan 2, 2024
1 parent 433baee commit a2131b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/PyMPDATA_examples/Olesik_et_al_2022/wall_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_wall_time(n_runs=3, mrats=(10,), generate=False, print_tab=True, rtol=R
i += 1
selected_value = np.min(minimum_values)
if opts == {"n_iters": 1}:
norm = selected_value
norm = np.float64(selected_value)
table_data["opts"].append(str(opts) + "(" + grid.__class__.__name__ + ")")
table_data["values"].append(round(selected_value / norm, 1))
make_textable(data=table_data, generate=generate, print_tab=print_tab)
Expand Down
4 changes: 4 additions & 0 deletions tests/smoke_tests/olesik_et_al_2022/test_wall_time.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring
import os

import pytest
from PyMPDATA_examples.Olesik_et_al_2022 import wall_time


@pytest.mark.xfail(condition=(os.name == "nt"))
def test_wall_time():
wall_time.test_wall_time()

0 comments on commit a2131b0

Please sign in to comment.