Pytest¶
Important
For these helpers to work, you need to install extra_platforms’s additional dependencies from the pytest extra group:
$ uv pip install 'extra-platforms[pytest]'
Usage¶
@skip_<id>: Skip the test when the current environment matches the trait or group<id>@unless_<id>: Skip the test unless the current environment matches the trait or group<id>
Skip a test on Windows:
import pytest
from extra_platforms.pytest import skip_windows
@skip_windows
def test_unix_only():
# This test will be skipped on Windows
pass
Run a test only on Linux:
import pytest
from extra_platforms.pytest import unless_linux
@unless_linux
def test_linux_only():
# This test will be skipped unless running on Linux
pass
Skip a test on specific architectures:
import pytest
from extra_platforms.pytest import skip_aarch64
@skip_aarch64
def test_not_on_arm64():
# This test will be skipped on ARM64 (AArch64)
pass
Skip a test in CI environments:
import pytest
from extra_platforms.pytest import skip_github_ci
@skip_github_ci
def test_not_in_github_actions():
# This test will be skipped when running in GitHub Actions
pass
Test helpers¶
Beyond the per-trait decorators, the extra_platforms.pytest module ships helpers that are absent from the table below.
Fake executables¶
Some tests drive a command through a real subprocess. write_fake_executable writes a stand-in that still runs in a sandbox shipping no /bin/sh:
- extra_platforms.pytest.write_fake_executable(path, *, stdout='', stderr='', returncode=0)[source]¶
Write a fake executable for
pathand return the path to run.On POSIX the script is written to
pathwith a Python shebang (the interpreter running the tests), not#!/bin/sh, so it execs even in hermetic build sandboxes that ship no/bin/sh(Guix, Nixpkgs, …). On Windows, where a shebang is ignored, the Python body is written to a.pysidecar and a.cmdlauncher besidepathis returned instead. Either way the command writesstdoutandstderrverbatim, then exits withreturncode, ignoring its arguments: enough to stand in for a command a test drives through a real subprocess.- Return type:
All decorators¶
Skip decorator |
Unless decorator |
Icon |
Associated symbol |
|---|---|---|---|
📱 |
|||
➿ |
|||
🔳 |
|||
🧠 |
|||
🏛️ |
|||
📱 |
|||
♺ |
|||
🔲 |
|||
⚙️ |
|||
🐚 |
|||
☀️ |
|||
💻 |
|||
⁕ |
|||
🪟 |
|||
|
|||
🏔️ |
|||
Δ |
|||
⤻ |
|||
🤖 |
|||
🍏 |
|||
🎗️ |
|||
³² |
|||
⁶⁴ |
|||
📱 |
|||
📱 |
|||
📱 |
|||
📱 |
|||
📱 |
|||
⟁ |
|||
🪶 |
|||
═ |
|||
⟲ |
|||
# |
|||
⬆️ |
|||
💲 |
|||
Ⓑ |
|||
🅱️ |
|||
🪁 |
|||
⛑️ |
|||
🅲 |
|||
⌬ |
|||
💠 |
|||
🧿 |
|||
⪾ |
|||
≋ |
|||
✴️ |
|||
✳️ |
|||
👾 |
|||
꩜ |
|||
▶ |
|||
ᚙ |
|||
📕 |
|||
◰ |
|||
✈️ |
|||
💘 |
|||
✜ |
|||
𝐂 |
|||
➤ |
|||
Ͼ |
|||
💨 |
|||
🌀 |
|||
🪰 |
|||
🚀 |
|||
🐽 |
|||
🎩 |
|||
🐟 |
|||
🦶 |
|||
😈 |
|||
♊ |
|||
🥚 |
|||
🗜️ |
|||
👻 |
|||
🐙 |
|||
🦊 |
|||
𝐆 |
|||
📺 |
|||
🎮 |
|||
🐃 |
|||
🍂 |
|||
🥫 |
|||
⥁ |
|||
🦬 |
|||
⬡ |
|||
𝗶 |
|||
𝗶 |
|||
𝗶 |
|||
🏢 |
|||
🤹 |
|||
🔥 |
|||
⬛ |
|||
🔱 |
|||
🐱 |
|||
💎 |
|||
𝐊 |
|||
🤹 |
|||
🐧 |
|||
≚ |
|||
🐣 |
|||
🌿 |
|||
⬇️ |
|||
🐉 |
|||
🐉 |
|||
🍎 |
|||
⍥ |
|||
💫 |
|||
▲ |
|||
🌘 |
|||
🔲 |
|||
🔲 |
|||
🔲 |
|||
🔲 |
|||
⧉ |
|||
▦ |
|||
🚩 |
|||
❄️ |
|||
|
|||
𝜈 |
|||
🃏 |
|||
🐡 |
|||
🦎 |
|||
📶 |
|||
🦴 |
|||
🟦 |
|||
🅟 |
|||
◇ |
|||
∥ |
|||
π |
|||
🍓 |
|||
🐹 |
|||
⚡ |
|||
🔷 |
|||
⚡ |
|||
⚡ |
|||
⚡ |
|||
🍓 |
|||
🎩 |
|||
🏞️ |
|||
Ⅴ |
|||
Ⅴ |
|||
Ⅴ |
|||
⛰️ |
|||
🏢 |
|||
⚛️ |
|||
𝐒 |
|||
🚬 |
|||
🦎 |
|||
🕷️ |
|||
🌞 |
|||
|
|||
🧙 |
|||
☀️ |
|||
☀️ |
|||
🌅 |
|||
𝐕 |
|||
🐈 |
|||
𝐓 |
|||
🏙️ |
|||
🔀 |
|||
📟 |
|||
👷 |
|||
🤵 |
|||
🎯 |
|||
🌊 |
|||
⨷ |
|||
≛ |
|||
⨂ |
|||
❓ |
|||
❓ |
|||
❓ |
|||
❓ |
|||
❓ |
|||
❓ |
|||
❓ |
|||
∅ |
|||
🔵 |
|||
🌐 |
|||
🌐 |
|||
⬢ |
|||
🌐 |
|||
🌴 |
|||
🔡 |
|||
🪟 |
|||
⌨️ |
|||
⊡ |
|||
⊞ |
|||
⊞ |
|||
𝘅 |
|||
🖥️ |
|||
Ⓧ |
|||
🐍 |
|||
𝐗 |
|||
🪵 |
|||
ℤ |
Skip decorators¶
- @extra_platforms.pytest.skip_aarch64(*args, **kwargs)¶
Skip test if current environment is
AARCH64(whenis_aarch64()returnsTrue).
- @extra_platforms.pytest.skip_aix(*args, **kwargs)¶
Skip test if current environment is
AIX(whenis_aix()returnsTrue).
- @extra_platforms.pytest.skip_alacritty(*args, **kwargs)¶
Skip test if current environment is
ALACRITTY(whenis_alacritty()returnsTrue).
- @extra_platforms.pytest.skip_all_agents(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_AGENTSgroup (whenis_any_agent()returnsTrue).
- @extra_platforms.pytest.skip_all_architectures(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_ARCHITECTURESgroup (whenis_any_architecture()returnsTrue).
- @extra_platforms.pytest.skip_all_arm(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_ARMgroup (whenis_any_arm()returnsTrue).
- @extra_platforms.pytest.skip_all_ci(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_CIgroup (whenis_any_ci()returnsTrue).
- @extra_platforms.pytest.skip_all_mips(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_MIPSgroup (whenis_any_mips()returnsTrue).
- @extra_platforms.pytest.skip_all_platforms(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_PLATFORMSgroup (whenis_any_platform()returnsTrue).
- @extra_platforms.pytest.skip_all_shells(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_SHELLSgroup (whenis_any_shell()returnsTrue).
- @extra_platforms.pytest.skip_all_sparc(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_SPARCgroup (whenis_any_sparc()returnsTrue).
- @extra_platforms.pytest.skip_all_terminals(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_TERMINALSgroup (whenis_any_terminal()returnsTrue).
- @extra_platforms.pytest.skip_all_traits(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_TRAITSgroup (whenis_any_trait()returnsTrue).
- @extra_platforms.pytest.skip_all_windows(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_WINDOWSgroup (whenis_any_windows()returnsTrue).
- @extra_platforms.pytest.skip_almalinux(*args, **kwargs)¶
Skip test if current environment is
ALMALINUX(whenis_almalinux()returnsTrue).
- @extra_platforms.pytest.skip_alpine(*args, **kwargs)¶
Skip test if current environment is
ALPINE(whenis_alpine()returnsTrue).
- @extra_platforms.pytest.skip_altlinux(*args, **kwargs)¶
Skip test if current environment is
ALTLINUX(whenis_altlinux()returnsTrue).
- @extra_platforms.pytest.skip_amzn(*args, **kwargs)¶
Skip test if current environment is
AMZN(whenis_amzn()returnsTrue).
- @extra_platforms.pytest.skip_android(*args, **kwargs)¶
Skip test if current environment is
ANDROID(whenis_android()returnsTrue).
- @extra_platforms.pytest.skip_apple_terminal(*args, **kwargs)¶
Skip test if current environment is
APPLE_TERMINAL(whenis_apple_terminal()returnsTrue).
- @extra_platforms.pytest.skip_arch(*args, **kwargs)¶
Skip test if current environment is
ARCH(whenis_arch()returnsTrue).
- @extra_platforms.pytest.skip_arch_32_bit(*args, **kwargs)¶
Skip test if current environment matches any member of the
ARCH_32_BITgroup (whenis_arch_32_bit()returnsTrue).
- @extra_platforms.pytest.skip_arch_64_bit(*args, **kwargs)¶
Skip test if current environment matches any member of the
ARCH_64_BITgroup (whenis_arch_64_bit()returnsTrue).
- @extra_platforms.pytest.skip_arm(*args, **kwargs)¶
Skip test if current environment is
ARM(whenis_arm()returnsTrue).
- @extra_platforms.pytest.skip_armv5tel(*args, **kwargs)¶
Skip test if current environment is
ARMV5TEL(whenis_armv5tel()returnsTrue).
- @extra_platforms.pytest.skip_armv6l(*args, **kwargs)¶
Skip test if current environment is
ARMV6L(whenis_armv6l()returnsTrue).
- @extra_platforms.pytest.skip_armv7l(*args, **kwargs)¶
Skip test if current environment is
ARMV7L(whenis_armv7l()returnsTrue).
- @extra_platforms.pytest.skip_armv8l(*args, **kwargs)¶
Skip test if current environment is
ARMV8L(whenis_armv8l()returnsTrue).
- @extra_platforms.pytest.skip_artix(*args, **kwargs)¶
Skip test if current environment is
ARTIX(whenis_artix()returnsTrue).
- @extra_platforms.pytest.skip_ash(*args, **kwargs)¶
Skip test if current environment is
ASH(whenis_ash()returnsTrue).
- @extra_platforms.pytest.skip_azure_pipelines(*args, **kwargs)¶
Skip test if current environment is
AZURE_PIPELINES(whenis_azure_pipelines()returnsTrue).
- @extra_platforms.pytest.skip_bamboo(*args, **kwargs)¶
Skip test if current environment is
BAMBOO(whenis_bamboo()returnsTrue).
- @extra_platforms.pytest.skip_bash(*args, **kwargs)¶
Skip test if current environment is
BASH(whenis_bash()returnsTrue).
- @extra_platforms.pytest.skip_big_endian(*args, **kwargs)¶
Skip test if current environment matches any member of the
BIG_ENDIANgroup (whenis_big_endian()returnsTrue).
- @extra_platforms.pytest.skip_bourne_shells(*args, **kwargs)¶
Skip test if current environment matches any member of the
BOURNE_SHELLSgroup (whenis_bourne_shells()returnsTrue).
- @extra_platforms.pytest.skip_bsd(*args, **kwargs)¶
Skip test if current environment matches any member of the
BSDgroup (whenis_bsd()returnsTrue).
- @extra_platforms.pytest.skip_bsd_not_macos(*args, **kwargs)¶
Skip test if current environment matches any member of the
BSD_WITHOUT_MACOSgroup (whenis_bsd_not_macos()returnsTrue).
- @extra_platforms.pytest.skip_buildkite(*args, **kwargs)¶
Skip test if current environment is
BUILDKITE(whenis_buildkite()returnsTrue).
- @extra_platforms.pytest.skip_buildroot(*args, **kwargs)¶
Skip test if current environment is
BUILDROOT(whenis_buildroot()returnsTrue).
- @extra_platforms.pytest.skip_c_shells(*args, **kwargs)¶
Skip test if current environment matches any member of the
C_SHELLSgroup (whenis_c_shells()returnsTrue).
- @extra_platforms.pytest.skip_cachyos(*args, **kwargs)¶
Skip test if current environment is
CACHYOS(whenis_cachyos()returnsTrue).
- @extra_platforms.pytest.skip_centos(*args, **kwargs)¶
Skip test if current environment is
CENTOS(whenis_centos()returnsTrue).
- @extra_platforms.pytest.skip_chromeos(*args, **kwargs)¶
Skip test if current environment is
CHROMEOS(whenis_chromeos()returnsTrue).
- @extra_platforms.pytest.skip_circle_ci(*args, **kwargs)¶
Skip test if current environment is
CIRCLE_CI(whenis_circle_ci()returnsTrue).
- @extra_platforms.pytest.skip_cirrus_ci(*args, **kwargs)¶
Skip test if current environment is
CIRRUS_CI(whenis_cirrus_ci()returnsTrue).
- @extra_platforms.pytest.skip_claude_code(*args, **kwargs)¶
Skip test if current environment is
CLAUDE_CODE(whenis_claude_code()returnsTrue).
- @extra_platforms.pytest.skip_clearlinux(*args, **kwargs)¶
Skip test if current environment is
CLEARLINUX(whenis_clearlinux()returnsTrue).
- @extra_platforms.pytest.skip_cline(*args, **kwargs)¶
Skip test if current environment is
CLINE(whenis_cline()returnsTrue).
- @extra_platforms.pytest.skip_cloudlinux(*args, **kwargs)¶
Skip test if current environment is
CLOUDLINUX(whenis_cloudlinux()returnsTrue).
- @extra_platforms.pytest.skip_cmd(*args, **kwargs)¶
Skip test if current environment is
CMD(whenis_cmd()returnsTrue).
- @extra_platforms.pytest.skip_codebuild(*args, **kwargs)¶
Skip test if current environment is
CODEBUILD(whenis_codebuild()returnsTrue).
- @extra_platforms.pytest.skip_codex(*args, **kwargs)¶
Skip test if current environment is
CODEX(whenis_codex()returnsTrue).
- @extra_platforms.pytest.skip_contour(*args, **kwargs)¶
Skip test if current environment is
CONTOUR(whenis_contour()returnsTrue).
- @extra_platforms.pytest.skip_copilot_cli(*args, **kwargs)¶
Skip test if current environment is
COPILOT_CLI(whenis_copilot_cli()returnsTrue).
- @extra_platforms.pytest.skip_crush(*args, **kwargs)¶
Skip test if current environment is
CRUSH(whenis_crush()returnsTrue).
- @extra_platforms.pytest.skip_crux(*args, **kwargs)¶
Skip test if current environment is
CRUX(whenis_crux()returnsTrue).
- @extra_platforms.pytest.skip_csh(*args, **kwargs)¶
Skip test if current environment is
CSH(whenis_csh()returnsTrue).
- @extra_platforms.pytest.skip_cursor(*args, **kwargs)¶
Skip test if current environment is
CURSOR(whenis_cursor()returnsTrue).
- @extra_platforms.pytest.skip_cygwin(*args, **kwargs)¶
Skip test if current environment is
CYGWIN(whenis_cygwin()returnsTrue).
- @extra_platforms.pytest.skip_dash(*args, **kwargs)¶
Skip test if current environment is
DASH(whenis_dash()returnsTrue).
- @extra_platforms.pytest.skip_debian(*args, **kwargs)¶
Skip test if current environment is
DEBIAN(whenis_debian()returnsTrue).
- @extra_platforms.pytest.skip_dragonfly_bsd(*args, **kwargs)¶
Skip test if current environment is
DRAGONFLY_BSD(whenis_dragonfly_bsd()returnsTrue).
- @extra_platforms.pytest.skip_endeavouros(*args, **kwargs)¶
Skip test if current environment is
ENDEAVOUROS(whenis_endeavouros()returnsTrue).
- @extra_platforms.pytest.skip_exherbo(*args, **kwargs)¶
Skip test if current environment is
EXHERBO(whenis_exherbo()returnsTrue).
- @extra_platforms.pytest.skip_fedora(*args, **kwargs)¶
Skip test if current environment is
FEDORA(whenis_fedora()returnsTrue).
- @extra_platforms.pytest.skip_fish(*args, **kwargs)¶
Skip test if current environment is
FISH(whenis_fish()returnsTrue).
- @extra_platforms.pytest.skip_foot(*args, **kwargs)¶
Skip test if current environment is
FOOT(whenis_foot()returnsTrue).
- @extra_platforms.pytest.skip_freebsd(*args, **kwargs)¶
Skip test if current environment is
FREEBSD(whenis_freebsd()returnsTrue).
- @extra_platforms.pytest.skip_gemini_cli(*args, **kwargs)¶
Skip test if current environment is
GEMINI_CLI(whenis_gemini_cli()returnsTrue).
- @extra_platforms.pytest.skip_generic_linux(*args, **kwargs)¶
Skip test if current environment is
GENERIC_LINUX(whenis_generic_linux()returnsTrue).
- @extra_platforms.pytest.skip_gentoo(*args, **kwargs)¶
Skip test if current environment is
GENTOO(whenis_gentoo()returnsTrue).
- @extra_platforms.pytest.skip_ghostty(*args, **kwargs)¶
Skip test if current environment is
GHOSTTY(whenis_ghostty()returnsTrue).
- @extra_platforms.pytest.skip_github_ci(*args, **kwargs)¶
Skip test if current environment is
GITHUB_CI(whenis_github_ci()returnsTrue).
- @extra_platforms.pytest.skip_gitlab_ci(*args, **kwargs)¶
Skip test if current environment is
GITLAB_CI(whenis_gitlab_ci()returnsTrue).
- @extra_platforms.pytest.skip_gnome_terminal(*args, **kwargs)¶
Skip test if current environment is
GNOME_TERMINAL(whenis_gnome_terminal()returnsTrue).
- @extra_platforms.pytest.skip_gnu_screen(*args, **kwargs)¶
Skip test if current environment is
GNU_SCREEN(whenis_gnu_screen()returnsTrue).
- @extra_platforms.pytest.skip_gpu_terminals(*args, **kwargs)¶
Skip test if current environment matches any member of the
GPU_TERMINALSgroup (whenis_gpu_terminals()returnsTrue).
- @extra_platforms.pytest.skip_guix(*args, **kwargs)¶
Skip test if current environment is
GUIX(whenis_guix()returnsTrue).
- @extra_platforms.pytest.skip_haiku(*args, **kwargs)¶
Skip test if current environment is
HAIKU(whenis_haiku()returnsTrue).
- @extra_platforms.pytest.skip_hermetic_build(*args, **kwargs)¶
Skip test if current environment is
HERMETIC_BUILD(whenis_hermetic_build()returnsTrue).
- @extra_platforms.pytest.skip_heroku_ci(*args, **kwargs)¶
Skip test if current environment is
HEROKU_CI(whenis_heroku_ci()returnsTrue).
- @extra_platforms.pytest.skip_hurd(*args, **kwargs)¶
Skip test if current environment is
HURD(whenis_hurd()returnsTrue).
- @extra_platforms.pytest.skip_hyper(*args, **kwargs)¶
Skip test if current environment is
HYPER(whenis_hyper()returnsTrue).
- @extra_platforms.pytest.skip_i386(*args, **kwargs)¶
Skip test if current environment is
I386(whenis_i386()returnsTrue).
- @extra_platforms.pytest.skip_i586(*args, **kwargs)¶
Skip test if current environment is
I586(whenis_i586()returnsTrue).
- @extra_platforms.pytest.skip_i686(*args, **kwargs)¶
Skip test if current environment is
I686(whenis_i686()returnsTrue).
- @extra_platforms.pytest.skip_ibm_mainframe(*args, **kwargs)¶
Skip test if current environment matches any member of the
IBM_MAINFRAMEgroup (whenis_ibm_mainframe()returnsTrue).
- @extra_platforms.pytest.skip_ibm_powerkvm(*args, **kwargs)¶
Skip test if current environment is
IBM_POWERKVM(whenis_ibm_powerkvm()returnsTrue).
- @extra_platforms.pytest.skip_illumos(*args, **kwargs)¶
Skip test if current environment is
ILLUMOS(whenis_illumos()returnsTrue).
- @extra_platforms.pytest.skip_iterm2(*args, **kwargs)¶
Skip test if current environment is
ITERM2(whenis_iterm2()returnsTrue).
- @extra_platforms.pytest.skip_kali(*args, **kwargs)¶
Skip test if current environment is
KALI(whenis_kali()returnsTrue).
- @extra_platforms.pytest.skip_kitty(*args, **kwargs)¶
Skip test if current environment is
KITTY(whenis_kitty()returnsTrue).
- @extra_platforms.pytest.skip_konsole(*args, **kwargs)¶
Skip test if current environment is
KONSOLE(whenis_konsole()returnsTrue).
- @extra_platforms.pytest.skip_ksh(*args, **kwargs)¶
Skip test if current environment is
KSH(whenis_ksh()returnsTrue).
- @extra_platforms.pytest.skip_kvmibm(*args, **kwargs)¶
Skip test if current environment is
KVMIBM(whenis_kvmibm()returnsTrue).
- @extra_platforms.pytest.skip_linux(*args, **kwargs)¶
Skip test if current environment matches any member of the
LINUXgroup (whenis_linux()returnsTrue).
- @extra_platforms.pytest.skip_linux_layers(*args, **kwargs)¶
Skip test if current environment matches any member of the
LINUX_LAYERSgroup (whenis_linux_layers()returnsTrue).
- @extra_platforms.pytest.skip_linux_like(*args, **kwargs)¶
Skip test if current environment matches any member of the
LINUX_LIKEgroup (whenis_linux_like()returnsTrue).
- @extra_platforms.pytest.skip_linuxmint(*args, **kwargs)¶
Skip test if current environment is
LINUXMINT(whenis_linuxmint()returnsTrue).
- @extra_platforms.pytest.skip_little_endian(*args, **kwargs)¶
Skip test if current environment matches any member of the
LITTLE_ENDIANgroup (whenis_little_endian()returnsTrue).
- @extra_platforms.pytest.skip_loongarch(*args, **kwargs)¶
Skip test if current environment matches any member of the
LOONGARCHgroup (whenis_loongarch()returnsTrue).
- @extra_platforms.pytest.skip_loongarch64(*args, **kwargs)¶
Skip test if current environment is
LOONGARCH64(whenis_loongarch64()returnsTrue).
- @extra_platforms.pytest.skip_macos(*args, **kwargs)¶
Skip test if current environment is
MACOS(whenis_macos()returnsTrue).
- @extra_platforms.pytest.skip_mageia(*args, **kwargs)¶
Skip test if current environment is
MAGEIA(whenis_mageia()returnsTrue).
- @extra_platforms.pytest.skip_mandriva(*args, **kwargs)¶
Skip test if current environment is
MANDRIVA(whenis_mandriva()returnsTrue).
- @extra_platforms.pytest.skip_manjaro(*args, **kwargs)¶
Skip test if current environment is
MANJARO(whenis_manjaro()returnsTrue).
- @extra_platforms.pytest.skip_midnightbsd(*args, **kwargs)¶
Skip test if current environment is
MIDNIGHTBSD(whenis_midnightbsd()returnsTrue).
- @extra_platforms.pytest.skip_mips(*args, **kwargs)¶
Skip test if current environment is
MIPS(whenis_mips()returnsTrue).
- @extra_platforms.pytest.skip_mips64(*args, **kwargs)¶
Skip test if current environment is
MIPS64(whenis_mips64()returnsTrue).
- @extra_platforms.pytest.skip_mips64el(*args, **kwargs)¶
Skip test if current environment is
MIPS64EL(whenis_mips64el()returnsTrue).
- @extra_platforms.pytest.skip_mipsel(*args, **kwargs)¶
Skip test if current environment is
MIPSEL(whenis_mipsel()returnsTrue).
- @extra_platforms.pytest.skip_multiplexers(*args, **kwargs)¶
Skip test if current environment matches any member of the
MULTIPLEXERSgroup (whenis_multiplexers()returnsTrue).
- @extra_platforms.pytest.skip_native_terminals(*args, **kwargs)¶
Skip test if current environment matches any member of the
NATIVE_TERMINALSgroup (whenis_native_terminals()returnsTrue).
- @extra_platforms.pytest.skip_netbsd(*args, **kwargs)¶
Skip test if current environment is
NETBSD(whenis_netbsd()returnsTrue).
- @extra_platforms.pytest.skip_nixos(*args, **kwargs)¶
Skip test if current environment is
NIXOS(whenis_nixos()returnsTrue).
- @extra_platforms.pytest.skip_nobara(*args, **kwargs)¶
Skip test if current environment is
NOBARA(whenis_nobara()returnsTrue).
- @extra_platforms.pytest.skip_nushell(*args, **kwargs)¶
Skip test if current environment is
NUSHELL(whenis_nushell()returnsTrue).
- @extra_platforms.pytest.skip_nutyx(*args, **kwargs)¶
Skip test if current environment is
NUTYX(whenis_nutyx()returnsTrue).
- @extra_platforms.pytest.skip_openbsd(*args, **kwargs)¶
Skip test if current environment is
OPENBSD(whenis_openbsd()returnsTrue).
- @extra_platforms.pytest.skip_opensuse(*args, **kwargs)¶
Skip test if current environment is
OPENSUSE(whenis_opensuse()returnsTrue).
- @extra_platforms.pytest.skip_openwrt(*args, **kwargs)¶
Skip test if current environment is
OPENWRT(whenis_openwrt()returnsTrue).
- @extra_platforms.pytest.skip_oracle(*args, **kwargs)¶
Skip test if current environment is
ORACLE(whenis_oracle()returnsTrue).
- @extra_platforms.pytest.skip_os400(*args, **kwargs)¶
Skip test if current environment is
OS400(whenis_os400()returnsTrue).
- @extra_platforms.pytest.skip_other_posix(*args, **kwargs)¶
Skip test if current environment matches any member of the
OTHER_POSIXgroup (whenis_other_posix()returnsTrue).
- @extra_platforms.pytest.skip_other_shells(*args, **kwargs)¶
Skip test if current environment matches any member of the
OTHER_SHELLSgroup (whenis_other_shells()returnsTrue).
- @extra_platforms.pytest.skip_parallels(*args, **kwargs)¶
Skip test if current environment is
PARALLELS(whenis_parallels()returnsTrue).
- @extra_platforms.pytest.skip_pi(*args, **kwargs)¶
Skip test if current environment is
PI(whenis_pi()returnsTrue).
- @extra_platforms.pytest.skip_pidora(*args, **kwargs)¶
Skip test if current environment is
PIDORA(whenis_pidora()returnsTrue).
- @extra_platforms.pytest.skip_pikaos(*args, **kwargs)¶
Skip test if current environment is
PIKAOS(whenis_pikaos()returnsTrue).
- @extra_platforms.pytest.skip_powerpc(*args, **kwargs)¶
Skip test if current environment matches any member of the
POWERPCgroup (whenis_powerpc()returnsTrue).
- @extra_platforms.pytest.skip_powershell(*args, **kwargs)¶
Skip test if current environment is
POWERSHELL(whenis_powershell()returnsTrue).
- @extra_platforms.pytest.skip_ppc(*args, **kwargs)¶
Skip test if current environment is
PPC(whenis_ppc()returnsTrue).
- @extra_platforms.pytest.skip_ppc64(*args, **kwargs)¶
Skip test if current environment is
PPC64(whenis_ppc64()returnsTrue).
- @extra_platforms.pytest.skip_ppc64le(*args, **kwargs)¶
Skip test if current environment is
PPC64LE(whenis_ppc64le()returnsTrue).
- @extra_platforms.pytest.skip_raspbian(*args, **kwargs)¶
Skip test if current environment is
RASPBIAN(whenis_raspbian()returnsTrue).
- @extra_platforms.pytest.skip_rhel(*args, **kwargs)¶
Skip test if current environment is
RHEL(whenis_rhel()returnsTrue).
- @extra_platforms.pytest.skip_rio(*args, **kwargs)¶
Skip test if current environment is
RIO(whenis_rio()returnsTrue).
- @extra_platforms.pytest.skip_riscv(*args, **kwargs)¶
Skip test if current environment matches any member of the
RISCVgroup (whenis_riscv()returnsTrue).
- @extra_platforms.pytest.skip_riscv32(*args, **kwargs)¶
Skip test if current environment is
RISCV32(whenis_riscv32()returnsTrue).
- @extra_platforms.pytest.skip_riscv64(*args, **kwargs)¶
Skip test if current environment is
RISCV64(whenis_riscv64()returnsTrue).
- @extra_platforms.pytest.skip_rocky(*args, **kwargs)¶
Skip test if current environment is
ROCKY(whenis_rocky()returnsTrue).
- @extra_platforms.pytest.skip_s390x(*args, **kwargs)¶
Skip test if current environment is
S390X(whenis_s390x()returnsTrue).
- @extra_platforms.pytest.skip_scientific(*args, **kwargs)¶
Skip test if current environment is
SCIENTIFIC(whenis_scientific()returnsTrue).
- @extra_platforms.pytest.skip_sh(*args, **kwargs)¶
Skip test if current environment is
SH(whenis_sh()returnsTrue).
- @extra_platforms.pytest.skip_slackware(*args, **kwargs)¶
Skip test if current environment is
SLACKWARE(whenis_slackware()returnsTrue).
- @extra_platforms.pytest.skip_sles(*args, **kwargs)¶
Skip test if current environment is
SLES(whenis_sles()returnsTrue).
- @extra_platforms.pytest.skip_slitaz(*args, **kwargs)¶
Skip test if current environment is
SLITAZ(whenis_slitaz()returnsTrue).
- @extra_platforms.pytest.skip_solaris(*args, **kwargs)¶
Skip test if current environment is
SOLARIS(whenis_solaris()returnsTrue).
- @extra_platforms.pytest.skip_solus(*args, **kwargs)¶
Skip test if current environment is
SOLUS(whenis_solus()returnsTrue).
- @extra_platforms.pytest.skip_sourcemage(*args, **kwargs)¶
Skip test if current environment is
SOURCEMAGE(whenis_sourcemage()returnsTrue).
- @extra_platforms.pytest.skip_sparc(*args, **kwargs)¶
Skip test if current environment is
SPARC(whenis_sparc()returnsTrue).
- @extra_platforms.pytest.skip_sparc64(*args, **kwargs)¶
Skip test if current environment is
SPARC64(whenis_sparc64()returnsTrue).
- @extra_platforms.pytest.skip_sunos(*args, **kwargs)¶
Skip test if current environment is
SUNOS(whenis_sunos()returnsTrue).
- @extra_platforms.pytest.skip_system_v(*args, **kwargs)¶
Skip test if current environment matches any member of the
SYSTEM_Vgroup (whenis_system_v()returnsTrue).
- @extra_platforms.pytest.skip_tabby(*args, **kwargs)¶
Skip test if current environment is
TABBY(whenis_tabby()returnsTrue).
- @extra_platforms.pytest.skip_tcsh(*args, **kwargs)¶
Skip test if current environment is
TCSH(whenis_tcsh()returnsTrue).
- @extra_platforms.pytest.skip_teamcity(*args, **kwargs)¶
Skip test if current environment is
TEAMCITY(whenis_teamcity()returnsTrue).
- @extra_platforms.pytest.skip_tilix(*args, **kwargs)¶
Skip test if current environment is
TILIX(whenis_tilix()returnsTrue).
- @extra_platforms.pytest.skip_tmux(*args, **kwargs)¶
Skip test if current environment is
TMUX(whenis_tmux()returnsTrue).
- @extra_platforms.pytest.skip_travis_ci(*args, **kwargs)¶
Skip test if current environment is
TRAVIS_CI(whenis_travis_ci()returnsTrue).
- @extra_platforms.pytest.skip_tuxedo(*args, **kwargs)¶
Skip test if current environment is
TUXEDO(whenis_tuxedo()returnsTrue).
- @extra_platforms.pytest.skip_ubuntu(*args, **kwargs)¶
Skip test if current environment is
UBUNTU(whenis_ubuntu()returnsTrue).
- @extra_platforms.pytest.skip_ultramarine(*args, **kwargs)¶
Skip test if current environment is
ULTRAMARINE(whenis_ultramarine()returnsTrue).
- @extra_platforms.pytest.skip_unix(*args, **kwargs)¶
Skip test if current environment matches any member of the
UNIXgroup (whenis_unix()returnsTrue).
- @extra_platforms.pytest.skip_unix_layers(*args, **kwargs)¶
Skip test if current environment matches any member of the
UNIX_LAYERSgroup (whenis_unix_layers()returnsTrue).
- @extra_platforms.pytest.skip_unix_not_macos(*args, **kwargs)¶
Skip test if current environment matches any member of the
UNIX_WITHOUT_MACOSgroup (whenis_unix_not_macos()returnsTrue).
- @extra_platforms.pytest.skip_unknown(*args, **kwargs)¶
Skip test if current environment matches any member of the
UNKNOWNgroup (whenis_unknown()returnsTrue).
- @extra_platforms.pytest.skip_unknown_agent(*args, **kwargs)¶
Skip test if current environment is
UNKNOWN_AGENT(whenis_unknown_agent()returnsTrue).
- @extra_platforms.pytest.skip_unknown_architecture(*args, **kwargs)¶
Skip test if current environment is
UNKNOWN_ARCHITECTURE(whenis_unknown_architecture()returnsTrue).
- @extra_platforms.pytest.skip_unknown_ci(*args, **kwargs)¶
Skip test if current environment is
UNKNOWN_CI(whenis_unknown_ci()returnsTrue).
- @extra_platforms.pytest.skip_unknown_platform(*args, **kwargs)¶
Skip test if current environment is
UNKNOWN_PLATFORM(whenis_unknown_platform()returnsTrue).
- @extra_platforms.pytest.skip_unknown_shell(*args, **kwargs)¶
Skip test if current environment is
UNKNOWN_SHELL(whenis_unknown_shell()returnsTrue).
- @extra_platforms.pytest.skip_unknown_terminal(*args, **kwargs)¶
Skip test if current environment is
UNKNOWN_TERMINAL(whenis_unknown_terminal()returnsTrue).
- @extra_platforms.pytest.skip_void(*args, **kwargs)¶
Skip test if current environment is
VOID(whenis_void()returnsTrue).
- @extra_platforms.pytest.skip_vscode_terminal(*args, **kwargs)¶
Skip test if current environment is
VSCODE_TERMINAL(whenis_vscode_terminal()returnsTrue).
- @extra_platforms.pytest.skip_wasm32(*args, **kwargs)¶
Skip test if current environment is
WASM32(whenis_wasm32()returnsTrue).
- @extra_platforms.pytest.skip_wasm64(*args, **kwargs)¶
Skip test if current environment is
WASM64(whenis_wasm64()returnsTrue).
- @extra_platforms.pytest.skip_web_terminals(*args, **kwargs)¶
Skip test if current environment matches any member of the
WEB_TERMINALSgroup (whenis_web_terminals()returnsTrue).
- @extra_platforms.pytest.skip_webassembly(*args, **kwargs)¶
Skip test if current environment matches any member of the
WEBASSEMBLYgroup (whenis_webassembly()returnsTrue).
- @extra_platforms.pytest.skip_webos(*args, **kwargs)¶
Skip test if current environment is
WEBOS(whenis_webos()returnsTrue).
- @extra_platforms.pytest.skip_wezterm(*args, **kwargs)¶
Skip test if current environment is
WEZTERM(whenis_wezterm()returnsTrue).
- @extra_platforms.pytest.skip_windows(*args, **kwargs)¶
Skip test if current environment is
WINDOWS(whenis_windows()returnsTrue).
- @extra_platforms.pytest.skip_windows_shells(*args, **kwargs)¶
Skip test if current environment matches any member of the
WINDOWS_SHELLSgroup (whenis_windows_shells()returnsTrue).
- @extra_platforms.pytest.skip_windows_terminal(*args, **kwargs)¶
Skip test if current environment is
WINDOWS_TERMINAL(whenis_windows_terminal()returnsTrue).
- @extra_platforms.pytest.skip_wsl1(*args, **kwargs)¶
Skip test if current environment is
WSL1(whenis_wsl1()returnsTrue).
- @extra_platforms.pytest.skip_wsl2(*args, **kwargs)¶
Skip test if current environment is
WSL2(whenis_wsl2()returnsTrue).
- @extra_platforms.pytest.skip_x86(*args, **kwargs)¶
Skip test if current environment matches any member of the
X86group (whenis_x86()returnsTrue).
- @extra_platforms.pytest.skip_x86_64(*args, **kwargs)¶
Skip test if current environment is
X86_64(whenis_x86_64()returnsTrue).
- @extra_platforms.pytest.skip_xenserver(*args, **kwargs)¶
Skip test if current environment is
XENSERVER(whenis_xenserver()returnsTrue).
- @extra_platforms.pytest.skip_xonsh(*args, **kwargs)¶
Skip test if current environment is
XONSH(whenis_xonsh()returnsTrue).
- @extra_platforms.pytest.skip_xterm(*args, **kwargs)¶
Skip test if current environment is
XTERM(whenis_xterm()returnsTrue).
- @extra_platforms.pytest.skip_zellij(*args, **kwargs)¶
Skip test if current environment is
ZELLIJ(whenis_zellij()returnsTrue).
Unless decorators¶
- @extra_platforms.pytest.unless_aarch64(*args, **kwargs)¶
Run test only if current environment is
AARCH64(whenis_aarch64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_aix(*args, **kwargs)¶
Run test only if current environment is
AIX(whenis_aix()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_alacritty(*args, **kwargs)¶
Run test only if current environment is
ALACRITTY(whenis_alacritty()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_agent(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_AGENTSgroup (whenis_any_agent()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_architecture(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_ARCHITECTURESgroup (whenis_any_architecture()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_arm(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_ARMgroup (whenis_any_arm()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_ci(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_CIgroup (whenis_any_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_mips(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_MIPSgroup (whenis_any_mips()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_platform(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_PLATFORMSgroup (whenis_any_platform()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_shell(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_SHELLSgroup (whenis_any_shell()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_sparc(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_SPARCgroup (whenis_any_sparc()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_terminal(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_TERMINALSgroup (whenis_any_terminal()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_trait(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_TRAITSgroup (whenis_any_trait()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_windows(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_WINDOWSgroup (whenis_any_windows()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_almalinux(*args, **kwargs)¶
Run test only if current environment is
ALMALINUX(whenis_almalinux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_alpine(*args, **kwargs)¶
Run test only if current environment is
ALPINE(whenis_alpine()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_altlinux(*args, **kwargs)¶
Run test only if current environment is
ALTLINUX(whenis_altlinux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_amzn(*args, **kwargs)¶
Run test only if current environment is
AMZN(whenis_amzn()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_android(*args, **kwargs)¶
Run test only if current environment is
ANDROID(whenis_android()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_apple_terminal(*args, **kwargs)¶
Run test only if current environment is
APPLE_TERMINAL(whenis_apple_terminal()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_arch(*args, **kwargs)¶
Run test only if current environment is
ARCH(whenis_arch()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_arch_32_bit(*args, **kwargs)¶
Run test only if current environment matches any member of the
ARCH_32_BITgroup (whenis_arch_32_bit()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_arch_64_bit(*args, **kwargs)¶
Run test only if current environment matches any member of the
ARCH_64_BITgroup (whenis_arch_64_bit()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_arm(*args, **kwargs)¶
Run test only if current environment is
ARM(whenis_arm()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_armv5tel(*args, **kwargs)¶
Run test only if current environment is
ARMV5TEL(whenis_armv5tel()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_armv6l(*args, **kwargs)¶
Run test only if current environment is
ARMV6L(whenis_armv6l()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_armv7l(*args, **kwargs)¶
Run test only if current environment is
ARMV7L(whenis_armv7l()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_armv8l(*args, **kwargs)¶
Run test only if current environment is
ARMV8L(whenis_armv8l()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_artix(*args, **kwargs)¶
Run test only if current environment is
ARTIX(whenis_artix()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ash(*args, **kwargs)¶
Run test only if current environment is
ASH(whenis_ash()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_azure_pipelines(*args, **kwargs)¶
Run test only if current environment is
AZURE_PIPELINES(whenis_azure_pipelines()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_bamboo(*args, **kwargs)¶
Run test only if current environment is
BAMBOO(whenis_bamboo()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_bash(*args, **kwargs)¶
Run test only if current environment is
BASH(whenis_bash()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_big_endian(*args, **kwargs)¶
Run test only if current environment matches any member of the
BIG_ENDIANgroup (whenis_big_endian()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_bourne_shells(*args, **kwargs)¶
Run test only if current environment matches any member of the
BOURNE_SHELLSgroup (whenis_bourne_shells()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_bsd(*args, **kwargs)¶
Run test only if current environment matches any member of the
BSDgroup (whenis_bsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_bsd_not_macos(*args, **kwargs)¶
Run test only if current environment matches any member of the
BSD_WITHOUT_MACOSgroup (whenis_bsd_not_macos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_buildkite(*args, **kwargs)¶
Run test only if current environment is
BUILDKITE(whenis_buildkite()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_buildroot(*args, **kwargs)¶
Run test only if current environment is
BUILDROOT(whenis_buildroot()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_c_shells(*args, **kwargs)¶
Run test only if current environment matches any member of the
C_SHELLSgroup (whenis_c_shells()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cachyos(*args, **kwargs)¶
Run test only if current environment is
CACHYOS(whenis_cachyos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_centos(*args, **kwargs)¶
Run test only if current environment is
CENTOS(whenis_centos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_chromeos(*args, **kwargs)¶
Run test only if current environment is
CHROMEOS(whenis_chromeos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_circle_ci(*args, **kwargs)¶
Run test only if current environment is
CIRCLE_CI(whenis_circle_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cirrus_ci(*args, **kwargs)¶
Run test only if current environment is
CIRRUS_CI(whenis_cirrus_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_claude_code(*args, **kwargs)¶
Run test only if current environment is
CLAUDE_CODE(whenis_claude_code()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_clearlinux(*args, **kwargs)¶
Run test only if current environment is
CLEARLINUX(whenis_clearlinux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cline(*args, **kwargs)¶
Run test only if current environment is
CLINE(whenis_cline()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cloudlinux(*args, **kwargs)¶
Run test only if current environment is
CLOUDLINUX(whenis_cloudlinux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cmd(*args, **kwargs)¶
Run test only if current environment is
CMD(whenis_cmd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_codebuild(*args, **kwargs)¶
Run test only if current environment is
CODEBUILD(whenis_codebuild()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_codex(*args, **kwargs)¶
Run test only if current environment is
CODEX(whenis_codex()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_contour(*args, **kwargs)¶
Run test only if current environment is
CONTOUR(whenis_contour()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_copilot_cli(*args, **kwargs)¶
Run test only if current environment is
COPILOT_CLI(whenis_copilot_cli()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_crush(*args, **kwargs)¶
Run test only if current environment is
CRUSH(whenis_crush()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_crux(*args, **kwargs)¶
Run test only if current environment is
CRUX(whenis_crux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_csh(*args, **kwargs)¶
Run test only if current environment is
CSH(whenis_csh()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cursor(*args, **kwargs)¶
Run test only if current environment is
CURSOR(whenis_cursor()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cygwin(*args, **kwargs)¶
Run test only if current environment is
CYGWIN(whenis_cygwin()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_dash(*args, **kwargs)¶
Run test only if current environment is
DASH(whenis_dash()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_debian(*args, **kwargs)¶
Run test only if current environment is
DEBIAN(whenis_debian()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_dragonfly_bsd(*args, **kwargs)¶
Run test only if current environment is
DRAGONFLY_BSD(whenis_dragonfly_bsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_endeavouros(*args, **kwargs)¶
Run test only if current environment is
ENDEAVOUROS(whenis_endeavouros()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_exherbo(*args, **kwargs)¶
Run test only if current environment is
EXHERBO(whenis_exherbo()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_fedora(*args, **kwargs)¶
Run test only if current environment is
FEDORA(whenis_fedora()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_fish(*args, **kwargs)¶
Run test only if current environment is
FISH(whenis_fish()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_foot(*args, **kwargs)¶
Run test only if current environment is
FOOT(whenis_foot()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_freebsd(*args, **kwargs)¶
Run test only if current environment is
FREEBSD(whenis_freebsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_gemini_cli(*args, **kwargs)¶
Run test only if current environment is
GEMINI_CLI(whenis_gemini_cli()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_generic_linux(*args, **kwargs)¶
Run test only if current environment is
GENERIC_LINUX(whenis_generic_linux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_gentoo(*args, **kwargs)¶
Run test only if current environment is
GENTOO(whenis_gentoo()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ghostty(*args, **kwargs)¶
Run test only if current environment is
GHOSTTY(whenis_ghostty()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_github_ci(*args, **kwargs)¶
Run test only if current environment is
GITHUB_CI(whenis_github_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_gitlab_ci(*args, **kwargs)¶
Run test only if current environment is
GITLAB_CI(whenis_gitlab_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_gnome_terminal(*args, **kwargs)¶
Run test only if current environment is
GNOME_TERMINAL(whenis_gnome_terminal()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_gnu_screen(*args, **kwargs)¶
Run test only if current environment is
GNU_SCREEN(whenis_gnu_screen()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_gpu_terminals(*args, **kwargs)¶
Run test only if current environment matches any member of the
GPU_TERMINALSgroup (whenis_gpu_terminals()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_guix(*args, **kwargs)¶
Run test only if current environment is
GUIX(whenis_guix()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_haiku(*args, **kwargs)¶
Run test only if current environment is
HAIKU(whenis_haiku()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_hermetic_build(*args, **kwargs)¶
Run test only if current environment is
HERMETIC_BUILD(whenis_hermetic_build()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_heroku_ci(*args, **kwargs)¶
Run test only if current environment is
HEROKU_CI(whenis_heroku_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_hurd(*args, **kwargs)¶
Run test only if current environment is
HURD(whenis_hurd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_hyper(*args, **kwargs)¶
Run test only if current environment is
HYPER(whenis_hyper()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_i386(*args, **kwargs)¶
Run test only if current environment is
I386(whenis_i386()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_i586(*args, **kwargs)¶
Run test only if current environment is
I586(whenis_i586()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_i686(*args, **kwargs)¶
Run test only if current environment is
I686(whenis_i686()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ibm_mainframe(*args, **kwargs)¶
Run test only if current environment matches any member of the
IBM_MAINFRAMEgroup (whenis_ibm_mainframe()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ibm_powerkvm(*args, **kwargs)¶
Run test only if current environment is
IBM_POWERKVM(whenis_ibm_powerkvm()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_illumos(*args, **kwargs)¶
Run test only if current environment is
ILLUMOS(whenis_illumos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_iterm2(*args, **kwargs)¶
Run test only if current environment is
ITERM2(whenis_iterm2()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_kali(*args, **kwargs)¶
Run test only if current environment is
KALI(whenis_kali()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_kitty(*args, **kwargs)¶
Run test only if current environment is
KITTY(whenis_kitty()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_konsole(*args, **kwargs)¶
Run test only if current environment is
KONSOLE(whenis_konsole()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ksh(*args, **kwargs)¶
Run test only if current environment is
KSH(whenis_ksh()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_kvmibm(*args, **kwargs)¶
Run test only if current environment is
KVMIBM(whenis_kvmibm()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_linux(*args, **kwargs)¶
Run test only if current environment matches any member of the
LINUXgroup (whenis_linux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_linux_layers(*args, **kwargs)¶
Run test only if current environment matches any member of the
LINUX_LAYERSgroup (whenis_linux_layers()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_linux_like(*args, **kwargs)¶
Run test only if current environment matches any member of the
LINUX_LIKEgroup (whenis_linux_like()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_linuxmint(*args, **kwargs)¶
Run test only if current environment is
LINUXMINT(whenis_linuxmint()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_little_endian(*args, **kwargs)¶
Run test only if current environment matches any member of the
LITTLE_ENDIANgroup (whenis_little_endian()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_loongarch(*args, **kwargs)¶
Run test only if current environment matches any member of the
LOONGARCHgroup (whenis_loongarch()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_loongarch64(*args, **kwargs)¶
Run test only if current environment is
LOONGARCH64(whenis_loongarch64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_macos(*args, **kwargs)¶
Run test only if current environment is
MACOS(whenis_macos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mageia(*args, **kwargs)¶
Run test only if current environment is
MAGEIA(whenis_mageia()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mandriva(*args, **kwargs)¶
Run test only if current environment is
MANDRIVA(whenis_mandriva()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_manjaro(*args, **kwargs)¶
Run test only if current environment is
MANJARO(whenis_manjaro()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_midnightbsd(*args, **kwargs)¶
Run test only if current environment is
MIDNIGHTBSD(whenis_midnightbsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mips(*args, **kwargs)¶
Run test only if current environment is
MIPS(whenis_mips()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mips64(*args, **kwargs)¶
Run test only if current environment is
MIPS64(whenis_mips64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mips64el(*args, **kwargs)¶
Run test only if current environment is
MIPS64EL(whenis_mips64el()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mipsel(*args, **kwargs)¶
Run test only if current environment is
MIPSEL(whenis_mipsel()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_multiplexers(*args, **kwargs)¶
Run test only if current environment matches any member of the
MULTIPLEXERSgroup (whenis_multiplexers()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_native_terminals(*args, **kwargs)¶
Run test only if current environment matches any member of the
NATIVE_TERMINALSgroup (whenis_native_terminals()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_netbsd(*args, **kwargs)¶
Run test only if current environment is
NETBSD(whenis_netbsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_nixos(*args, **kwargs)¶
Run test only if current environment is
NIXOS(whenis_nixos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_nobara(*args, **kwargs)¶
Run test only if current environment is
NOBARA(whenis_nobara()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_nushell(*args, **kwargs)¶
Run test only if current environment is
NUSHELL(whenis_nushell()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_nutyx(*args, **kwargs)¶
Run test only if current environment is
NUTYX(whenis_nutyx()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_openbsd(*args, **kwargs)¶
Run test only if current environment is
OPENBSD(whenis_openbsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_opensuse(*args, **kwargs)¶
Run test only if current environment is
OPENSUSE(whenis_opensuse()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_openwrt(*args, **kwargs)¶
Run test only if current environment is
OPENWRT(whenis_openwrt()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_oracle(*args, **kwargs)¶
Run test only if current environment is
ORACLE(whenis_oracle()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_os400(*args, **kwargs)¶
Run test only if current environment is
OS400(whenis_os400()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_other_posix(*args, **kwargs)¶
Run test only if current environment matches any member of the
OTHER_POSIXgroup (whenis_other_posix()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_other_shells(*args, **kwargs)¶
Run test only if current environment matches any member of the
OTHER_SHELLSgroup (whenis_other_shells()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_parallels(*args, **kwargs)¶
Run test only if current environment is
PARALLELS(whenis_parallels()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_pi(*args, **kwargs)¶
Run test only if current environment is
PI(whenis_pi()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_pidora(*args, **kwargs)¶
Run test only if current environment is
PIDORA(whenis_pidora()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_pikaos(*args, **kwargs)¶
Run test only if current environment is
PIKAOS(whenis_pikaos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_powerpc(*args, **kwargs)¶
Run test only if current environment matches any member of the
POWERPCgroup (whenis_powerpc()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_powershell(*args, **kwargs)¶
Run test only if current environment is
POWERSHELL(whenis_powershell()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ppc(*args, **kwargs)¶
Run test only if current environment is
PPC(whenis_ppc()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ppc64(*args, **kwargs)¶
Run test only if current environment is
PPC64(whenis_ppc64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ppc64le(*args, **kwargs)¶
Run test only if current environment is
PPC64LE(whenis_ppc64le()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_raspbian(*args, **kwargs)¶
Run test only if current environment is
RASPBIAN(whenis_raspbian()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_rhel(*args, **kwargs)¶
Run test only if current environment is
RHEL(whenis_rhel()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_rio(*args, **kwargs)¶
Run test only if current environment is
RIO(whenis_rio()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_riscv(*args, **kwargs)¶
Run test only if current environment matches any member of the
RISCVgroup (whenis_riscv()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_riscv32(*args, **kwargs)¶
Run test only if current environment is
RISCV32(whenis_riscv32()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_riscv64(*args, **kwargs)¶
Run test only if current environment is
RISCV64(whenis_riscv64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_rocky(*args, **kwargs)¶
Run test only if current environment is
ROCKY(whenis_rocky()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_s390x(*args, **kwargs)¶
Run test only if current environment is
S390X(whenis_s390x()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_scientific(*args, **kwargs)¶
Run test only if current environment is
SCIENTIFIC(whenis_scientific()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sh(*args, **kwargs)¶
Run test only if current environment is
SH(whenis_sh()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_slackware(*args, **kwargs)¶
Run test only if current environment is
SLACKWARE(whenis_slackware()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sles(*args, **kwargs)¶
Run test only if current environment is
SLES(whenis_sles()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_slitaz(*args, **kwargs)¶
Run test only if current environment is
SLITAZ(whenis_slitaz()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_solaris(*args, **kwargs)¶
Run test only if current environment is
SOLARIS(whenis_solaris()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_solus(*args, **kwargs)¶
Run test only if current environment is
SOLUS(whenis_solus()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sourcemage(*args, **kwargs)¶
Run test only if current environment is
SOURCEMAGE(whenis_sourcemage()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sparc(*args, **kwargs)¶
Run test only if current environment is
SPARC(whenis_sparc()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sparc64(*args, **kwargs)¶
Run test only if current environment is
SPARC64(whenis_sparc64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sunos(*args, **kwargs)¶
Run test only if current environment is
SUNOS(whenis_sunos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_system_v(*args, **kwargs)¶
Run test only if current environment matches any member of the
SYSTEM_Vgroup (whenis_system_v()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_tabby(*args, **kwargs)¶
Run test only if current environment is
TABBY(whenis_tabby()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_tcsh(*args, **kwargs)¶
Run test only if current environment is
TCSH(whenis_tcsh()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_teamcity(*args, **kwargs)¶
Run test only if current environment is
TEAMCITY(whenis_teamcity()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_tilix(*args, **kwargs)¶
Run test only if current environment is
TILIX(whenis_tilix()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_tmux(*args, **kwargs)¶
Run test only if current environment is
TMUX(whenis_tmux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_travis_ci(*args, **kwargs)¶
Run test only if current environment is
TRAVIS_CI(whenis_travis_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_tuxedo(*args, **kwargs)¶
Run test only if current environment is
TUXEDO(whenis_tuxedo()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ubuntu(*args, **kwargs)¶
Run test only if current environment is
UBUNTU(whenis_ubuntu()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ultramarine(*args, **kwargs)¶
Run test only if current environment is
ULTRAMARINE(whenis_ultramarine()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unix(*args, **kwargs)¶
Run test only if current environment matches any member of the
UNIXgroup (whenis_unix()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unix_layers(*args, **kwargs)¶
Run test only if current environment matches any member of the
UNIX_LAYERSgroup (whenis_unix_layers()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unix_not_macos(*args, **kwargs)¶
Run test only if current environment matches any member of the
UNIX_WITHOUT_MACOSgroup (whenis_unix_not_macos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown(*args, **kwargs)¶
Run test only if current environment matches any member of the
UNKNOWNgroup (whenis_unknown()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown_agent(*args, **kwargs)¶
Run test only if current environment is
UNKNOWN_AGENT(whenis_unknown_agent()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown_architecture(*args, **kwargs)¶
Run test only if current environment is
UNKNOWN_ARCHITECTURE(whenis_unknown_architecture()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown_ci(*args, **kwargs)¶
Run test only if current environment is
UNKNOWN_CI(whenis_unknown_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown_platform(*args, **kwargs)¶
Run test only if current environment is
UNKNOWN_PLATFORM(whenis_unknown_platform()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown_shell(*args, **kwargs)¶
Run test only if current environment is
UNKNOWN_SHELL(whenis_unknown_shell()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown_terminal(*args, **kwargs)¶
Run test only if current environment is
UNKNOWN_TERMINAL(whenis_unknown_terminal()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_void(*args, **kwargs)¶
Run test only if current environment is
VOID(whenis_void()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_vscode_terminal(*args, **kwargs)¶
Run test only if current environment is
VSCODE_TERMINAL(whenis_vscode_terminal()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_wasm32(*args, **kwargs)¶
Run test only if current environment is
WASM32(whenis_wasm32()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_wasm64(*args, **kwargs)¶
Run test only if current environment is
WASM64(whenis_wasm64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_web_terminals(*args, **kwargs)¶
Run test only if current environment matches any member of the
WEB_TERMINALSgroup (whenis_web_terminals()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_webassembly(*args, **kwargs)¶
Run test only if current environment matches any member of the
WEBASSEMBLYgroup (whenis_webassembly()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_webos(*args, **kwargs)¶
Run test only if current environment is
WEBOS(whenis_webos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_wezterm(*args, **kwargs)¶
Run test only if current environment is
WEZTERM(whenis_wezterm()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_windows(*args, **kwargs)¶
Run test only if current environment is
WINDOWS(whenis_windows()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_windows_shells(*args, **kwargs)¶
Run test only if current environment matches any member of the
WINDOWS_SHELLSgroup (whenis_windows_shells()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_windows_terminal(*args, **kwargs)¶
Run test only if current environment is
WINDOWS_TERMINAL(whenis_windows_terminal()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_wsl1(*args, **kwargs)¶
Run test only if current environment is
WSL1(whenis_wsl1()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_wsl2(*args, **kwargs)¶
Run test only if current environment is
WSL2(whenis_wsl2()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_x86(*args, **kwargs)¶
Run test only if current environment matches any member of the
X86group (whenis_x86()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_x86_64(*args, **kwargs)¶
Run test only if current environment is
X86_64(whenis_x86_64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_xenserver(*args, **kwargs)¶
Run test only if current environment is
XENSERVER(whenis_xenserver()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_xonsh(*args, **kwargs)¶
Run test only if current environment is
XONSH(whenis_xonsh()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_xterm(*args, **kwargs)¶
Run test only if current environment is
XTERM(whenis_xterm()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_zellij(*args, **kwargs)¶
Run test only if current environment is
ZELLIJ(whenis_zellij()returnsTrue). Skip otherwise.