Repository navigation
[Tests] Replace remaining requires_* helpers with standard pytest - #19787
Conversation
Replace the remaining requires_* decorators with standard pytest: - requires_package -> module-level pytest.importorskip - requires_hexagon_toolchain -> removed (unused) - requires_adreno_* -> @pytest.mark.gpu + skipif
There was a problem hiding this comment.
Code Review
This pull request refactors test decorators and markers across several TVM test files, removing custom decorators like requires_package and _adreno_requires in favor of standard pytest mechanisms such as pytest.importorskip and pytest.mark.skipif combined with @pytest.mark.gpu. Feedback was provided to guard the Adreno OpenCL/Vulkan runtime checks with tvm.runtime.enabled to prevent potential TVMError exceptions during test collection when TVM is compiled without OpenCL or Vulkan support.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
This pr is the Follow-up to #19777. This pr removes the last
requires_*decorators so test gating is plain pytest everywhere, with no custom indirection left.