Skip to content

Commit

Permalink
Skip ESMF profiling tests if babeltrace python binding are not availa…
Browse files Browse the repository at this point in the history
…ble.
  • Loading branch information
micaeljtoliveira committed May 9, 2024
1 parent 7bba5f8 commit 318e954
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_esmf_profiling.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import pytest
from pathlib import Path

from om3utils.esmf_profiling import ESMFProfilingParser
bt2 = pytest.importorskip("bt2", reason="Requires babeltrace2 python bindings")

from om3utils.esmf_profiling import ESMFProfilingParser

def test_read_missing_esmf_profiling_dir():
with pytest.raises(FileNotFoundError):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_esmf_trace.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import pytest

bt2 = pytest.importorskip("bt2", reason="Requires babeltrace2 python bindings")

from om3utils.esmf_trace import SinglePETTimingNode, MultiPETTimingNode


Expand Down

0 comments on commit 318e954

Please sign in to comment.