We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a747d1c commit ca6f545Copy full SHA for ca6f545
tests/unit_tests/training/test_nvrx_straggler.py
@@ -320,13 +320,14 @@ def dummy_func():
320
321
mock_straggler_module.Detector.wrap_callables.assert_called_once()
322
323
- def test_wrap_train_step_function_callable(self, manager, mock_straggler_module):
+ @pytest.mark.usefixtures("mock_straggler_module")
324
+ def test_wrap_train_step_function_callable(self, manager) -> None:
325
"""Test that the wrapped function is callable and routes through train_step."""
326
manager.initialized = True
327
328
call_count = [0]
329
- def dummy_func(*args, **kwargs):
330
+ def dummy_func(*_args, **_kwargs):
331
call_count[0] += 1
332
return "result"
333
0 commit comments