exclusive#
- exclusive(*, when: str | dict[str, str] | None = None) None#
Do not run this test in parallel with any other test.
Usage#
.pyt:import canary canary.directives.exclusive(*, when=...)
.vvt:NAParameters#
when: Restrict processing of the directive to this condition
The
whenexpression is limited to the following conditions:testname: Restrict processing of the directive to this test nameplatforms: Restrict processing of the directive to certain platform or platformsoptions: Restrict processing of the directive to command line-ooptionsparameters: Restrict processing of the directive to certain parameter names and values
Examples#
import canary canary.directives.exclusive(when="platforms='not darwin'")