Skip to content

Commit

Permalink
tests: Add 'pytorch' mark to all 'PyTorch' execution mode variants (#…
Browse files Browse the repository at this point in the history
…2774)

Tests that need pytorch in other execution modes (e.g. for construction) still need to be marked explicitly.

Signed-off-by: Jan Vesely <[email protected]>
  • Loading branch information
jvesely authored Aug 17, 2023
1 parent 233a0ce commit d2a72b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def pytest_generate_tests(metafunc):
if "autodiff_mode" in metafunc.fixturenames:
auto_modes = [
# pnlvm.ExecutionMode.Python,
pnlvm.ExecutionMode.PyTorch,
pytest.param(pnlvm.ExecutionMode.PyTorch, marks=pytest.mark.pytorch),
pytest.param(pnlvm.ExecutionMode.LLVMRun, marks=pytest.mark.llvm)
]
metafunc.parametrize("autodiff_mode", auto_modes)
Expand Down

0 comments on commit d2a72b9

Please sign in to comment.