xdiff#

xdiff(*, when: str | dict[str, str] | None = None) None#

The test is expected to diff.

Usage#

.pyt:

import canary
canary.directives.xdiff(when=...)

Parameters#

  • when: Restrict processing of the directive to this condition

The when expression is limited to the following conditions:

  • testname: Restrict processing of the directive to this test name

  • platforms: Restrict processing of the directive to certain platform or platforms

  • options: Restrict processing of the directive to command line -o options

  • parameters: Restrict processing of the directive to certain parameter names and values