Pytest¶
Important
For these helpers to work, you need to install extra_platforms’s additional dependencies from the pytest extra group:
$ pip install extra_platforms[pytest]
Usage¶
@skip_<id>— Skips the test when running on that platform/architecture/CI system@unless_<id>— Skips the test unless running on that platform/architecture/CI system
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
All decorators¶
Skip decorator |
Unless decorator |
Icon |
Associated symbol |
|---|---|---|---|
📱 |
|||
➿ |
|||
🏛️ |
|||
📱 |
|||
♺ |
|||
🔲 |
|||
⚙️ |
|||
☀️ |
|||
⁕ |
|||
🪟 |
|||
🐧 |
|||
⤻ |
|||
🤖 |
|||
🎗️ |
|||
³² |
|||
⁶⁴ |
|||
📱 |
|||
📱 |
|||
📱 |
|||
📱 |
|||
📱 |
|||
═ |
|||
⟲ |
|||
🅱️+ |
|||
🅱️ |
|||
🪁 |
|||
⛑️ |
|||
⌬ |
|||
💠 |
|||
⪾ |
|||
≋ |
|||
꩜ |
|||
ᚙ |
|||
Ͼ |
|||
🌀 |
|||
🪰 |
|||
🐽 |
|||
🎩 |
|||
😈 |
|||
🗜️ |
|||
🐙 |
|||
🦊 |
|||
🐃 |
|||
🍂 |
|||
⥁ |
|||
🐃 |
|||
𝗶 |
|||
𝗶 |
|||
𝗶 |
|||
🏢 |
|||
🤹 |
|||
🔥 |
|||
🤹 |
|||
🐧 |
|||
≚ |
|||
🐧+ |
|||
🌿 |
|||
🐉 |
|||
🐉 |
|||
🍎 |
|||
⍥ |
|||
💫 |
|||
🌘 |
|||
🔲 |
|||
🔲 |
|||
🔲 |
|||
🔲 |
|||
🚩 |
|||
|
|||
🐡 |
|||
🦎 |
|||
🦴 |
|||
🅟 |
|||
∥ |
|||
🍓 |
|||
⚡ |
|||
⚡ |
|||
⚡ |
|||
⚡ |
|||
🍓 |
|||
🎩 |
|||
Ⅴ |
|||
Ⅴ |
|||
Ⅴ |
|||
⛰️ |
|||
🏢 |
|||
⚛️ |
|||
🚬 |
|||
🦎 |
|||
🌞 |
|||
☀️ |
|||
☀️ |
|||
☀️ |
|||
𝐕 |
|||
🏙️ |
|||
👷 |
|||
↻ |
|||
🤵 |
|||
🎯 |
|||
🌊 |
|||
⨷ |
|||
≛ |
|||
⨂ |
|||
❓ |
|||
❓ |
|||
❓ |
|||
❓ |
|||
🌐 |
|||
🌐 |
|||
🌐 |
|||
🪟 |
|||
⊞ |
|||
⊞ |
|||
𝘅 |
|||
🖥️ |
|||
Ⓧ |
Decorator reference¶
Skip decorators¶
- @extra_platforms.pytest.skip_aarch64(*args, **kwargs)¶
Skip test if current environment is
AARCH64(i.e., whenis_aarch64()returnsTrue).
- @extra_platforms.pytest.skip_aix(*args, **kwargs)¶
Skip test if current environment is
AIX(i.e., whenis_aix()returnsTrue).
- @extra_platforms.pytest.skip_all_architectures(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_ARCHITECTURESgroup (i.e., whenis_any_architecture()returnsTrue).
- @extra_platforms.pytest.skip_all_arm(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_ARMgroup (i.e., whenis_any_arm()returnsTrue).
- @extra_platforms.pytest.skip_all_ci(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_CIgroup (i.e., whenis_any_ci()returnsTrue).
- @extra_platforms.pytest.skip_all_mips(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_MIPSgroup (i.e., whenis_any_mips()returnsTrue).
- @extra_platforms.pytest.skip_all_platforms(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_PLATFORMSgroup (i.e., whenis_any_platform()returnsTrue).
- @extra_platforms.pytest.skip_all_sparc(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_SPARCgroup (i.e., whenis_any_sparc()returnsTrue).
- @extra_platforms.pytest.skip_all_traits(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_TRAITSgroup (i.e., whenis_any_trait()returnsTrue).
- @extra_platforms.pytest.skip_all_windows(*args, **kwargs)¶
Skip test if current environment matches any member of the
ALL_WINDOWSgroup (i.e., whenis_any_windows()returnsTrue).
- @extra_platforms.pytest.skip_altlinux(*args, **kwargs)¶
Skip test if current environment is
ALTLINUX(i.e., whenis_altlinux()returnsTrue).
- @extra_platforms.pytest.skip_amzn(*args, **kwargs)¶
Skip test if current environment is
AMZN(i.e., whenis_amzn()returnsTrue).
- @extra_platforms.pytest.skip_android(*args, **kwargs)¶
Skip test if current environment is
ANDROID(i.e., whenis_android()returnsTrue).
- @extra_platforms.pytest.skip_arch(*args, **kwargs)¶
Skip test if current environment is
ARCH(i.e., 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 (i.e., 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 (i.e., whenis_arch_64_bit()returnsTrue).
- @extra_platforms.pytest.skip_arm(*args, **kwargs)¶
Skip test if current environment is
ARM(i.e., whenis_arm()returnsTrue).
- @extra_platforms.pytest.skip_armv5tel(*args, **kwargs)¶
Skip test if current environment is
ARMV5TEL(i.e., whenis_armv5tel()returnsTrue).
- @extra_platforms.pytest.skip_armv6l(*args, **kwargs)¶
Skip test if current environment is
ARMV6L(i.e., whenis_armv6l()returnsTrue).
- @extra_platforms.pytest.skip_armv7l(*args, **kwargs)¶
Skip test if current environment is
ARMV7L(i.e., whenis_armv7l()returnsTrue).
- @extra_platforms.pytest.skip_armv8l(*args, **kwargs)¶
Skip test if current environment is
ARMV8L(i.e., whenis_armv8l()returnsTrue).
- @extra_platforms.pytest.skip_azure_pipelines(*args, **kwargs)¶
Skip test if current environment is
AZURE_PIPELINES(i.e., whenis_azure_pipelines()returnsTrue).
- @extra_platforms.pytest.skip_bamboo(*args, **kwargs)¶
Skip test if current environment is
BAMBOO(i.e., whenis_bamboo()returnsTrue).
- @extra_platforms.pytest.skip_bsd(*args, **kwargs)¶
Skip test if current environment matches any member of the
BSDgroup (i.e., 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 (i.e., whenis_bsd_not_macos()returnsTrue).
- @extra_platforms.pytest.skip_buildkite(*args, **kwargs)¶
Skip test if current environment is
BUILDKITE(i.e., whenis_buildkite()returnsTrue).
- @extra_platforms.pytest.skip_buildroot(*args, **kwargs)¶
Skip test if current environment is
BUILDROOT(i.e., whenis_buildroot()returnsTrue).
- @extra_platforms.pytest.skip_cachyos(*args, **kwargs)¶
Skip test if current environment is
CACHYOS(i.e., whenis_cachyos()returnsTrue).
- @extra_platforms.pytest.skip_centos(*args, **kwargs)¶
Skip test if current environment is
CENTOS(i.e., whenis_centos()returnsTrue).
- @extra_platforms.pytest.skip_circle_ci(*args, **kwargs)¶
Skip test if current environment is
CIRCLE_CI(i.e., whenis_circle_ci()returnsTrue).
- @extra_platforms.pytest.skip_cirrus_ci(*args, **kwargs)¶
Skip test if current environment is
CIRRUS_CI(i.e., whenis_cirrus_ci()returnsTrue).
- @extra_platforms.pytest.skip_cloudlinux(*args, **kwargs)¶
Skip test if current environment is
CLOUDLINUX(i.e., whenis_cloudlinux()returnsTrue).
- @extra_platforms.pytest.skip_codebuild(*args, **kwargs)¶
Skip test if current environment is
CODEBUILD(i.e., whenis_codebuild()returnsTrue).
- @extra_platforms.pytest.skip_cygwin(*args, **kwargs)¶
Skip test if current environment is
CYGWIN(i.e., whenis_cygwin()returnsTrue).
- @extra_platforms.pytest.skip_debian(*args, **kwargs)¶
Skip test if current environment is
DEBIAN(i.e., whenis_debian()returnsTrue).
- @extra_platforms.pytest.skip_dragonfly_bsd(*args, **kwargs)¶
Skip test if current environment is
DRAGONFLY_BSD(i.e., whenis_dragonfly_bsd()returnsTrue).
- @extra_platforms.pytest.skip_exherbo(*args, **kwargs)¶
Skip test if current environment is
EXHERBO(i.e., whenis_exherbo()returnsTrue).
- @extra_platforms.pytest.skip_fedora(*args, **kwargs)¶
Skip test if current environment is
FEDORA(i.e., whenis_fedora()returnsTrue).
- @extra_platforms.pytest.skip_freebsd(*args, **kwargs)¶
Skip test if current environment is
FREEBSD(i.e., whenis_freebsd()returnsTrue).
- @extra_platforms.pytest.skip_gentoo(*args, **kwargs)¶
Skip test if current environment is
GENTOO(i.e., whenis_gentoo()returnsTrue).
- @extra_platforms.pytest.skip_github_ci(*args, **kwargs)¶
Skip test if current environment is
GITHUB_CI(i.e., whenis_github_ci()returnsTrue).
- @extra_platforms.pytest.skip_gitlab_ci(*args, **kwargs)¶
Skip test if current environment is
GITLAB_CI(i.e., whenis_gitlab_ci()returnsTrue).
- @extra_platforms.pytest.skip_guix(*args, **kwargs)¶
Skip test if current environment is
GUIX(i.e., whenis_guix()returnsTrue).
- @extra_platforms.pytest.skip_haiku(*args, **kwargs)¶
Skip test if current environment is
HAIKU(i.e., whenis_haiku()returnsTrue).
- @extra_platforms.pytest.skip_heroku_ci(*args, **kwargs)¶
Skip test if current environment is
HEROKU_CI(i.e., whenis_heroku_ci()returnsTrue).
- @extra_platforms.pytest.skip_hurd(*args, **kwargs)¶
Skip test if current environment is
HURD(i.e., whenis_hurd()returnsTrue).
- @extra_platforms.pytest.skip_i386(*args, **kwargs)¶
Skip test if current environment is
I386(i.e., whenis_i386()returnsTrue).
- @extra_platforms.pytest.skip_i586(*args, **kwargs)¶
Skip test if current environment is
I586(i.e., whenis_i586()returnsTrue).
- @extra_platforms.pytest.skip_i686(*args, **kwargs)¶
Skip test if current environment is
I686(i.e., whenis_i686()returnsTrue).
- @extra_platforms.pytest.skip_ibm_mainframe(*args, **kwargs)¶
Skip test if current environment matches any member of the
IBM_MAINFRAMEgroup (i.e., whenis_ibm_mainframe()returnsTrue).
- @extra_platforms.pytest.skip_ibm_powerkvm(*args, **kwargs)¶
Skip test if current environment is
IBM_POWERKVM(i.e., whenis_ibm_powerkvm()returnsTrue).
- @extra_platforms.pytest.skip_illumos(*args, **kwargs)¶
Skip test if current environment is
ILLUMOS(i.e., whenis_illumos()returnsTrue).
- @extra_platforms.pytest.skip_kvmibm(*args, **kwargs)¶
Skip test if current environment is
KVMIBM(i.e., whenis_kvmibm()returnsTrue).
- @extra_platforms.pytest.skip_linux(*args, **kwargs)¶
Skip test if current environment matches any member of the
LINUXgroup (i.e., whenis_linux()returnsTrue).
- @extra_platforms.pytest.skip_linux_layers(*args, **kwargs)¶
Skip test if current environment matches any member of the
LINUX_LAYERSgroup (i.e., whenis_linux_layers()returnsTrue).
- @extra_platforms.pytest.skip_linux_like(*args, **kwargs)¶
Skip test if current environment matches any member of the
LINUX_LIKEgroup (i.e., whenis_linux_like()returnsTrue).
- @extra_platforms.pytest.skip_linuxmint(*args, **kwargs)¶
Skip test if current environment is
LINUXMINT(i.e., whenis_linuxmint()returnsTrue).
- @extra_platforms.pytest.skip_loongarch(*args, **kwargs)¶
Skip test if current environment matches any member of the
LOONGARCHgroup (i.e., whenis_loongarch()returnsTrue).
- @extra_platforms.pytest.skip_loongarch64(*args, **kwargs)¶
Skip test if current environment is
LOONGARCH64(i.e., whenis_loongarch64()returnsTrue).
- @extra_platforms.pytest.skip_macos(*args, **kwargs)¶
Skip test if current environment is
MACOS(i.e., whenis_macos()returnsTrue).
- @extra_platforms.pytest.skip_mageia(*args, **kwargs)¶
Skip test if current environment is
MAGEIA(i.e., whenis_mageia()returnsTrue).
- @extra_platforms.pytest.skip_mandriva(*args, **kwargs)¶
Skip test if current environment is
MANDRIVA(i.e., whenis_mandriva()returnsTrue).
- @extra_platforms.pytest.skip_midnightbsd(*args, **kwargs)¶
Skip test if current environment is
MIDNIGHTBSD(i.e., whenis_midnightbsd()returnsTrue).
- @extra_platforms.pytest.skip_mips(*args, **kwargs)¶
Skip test if current environment is
MIPS(i.e., whenis_mips()returnsTrue).
- @extra_platforms.pytest.skip_mips64(*args, **kwargs)¶
Skip test if current environment is
MIPS64(i.e., whenis_mips64()returnsTrue).
- @extra_platforms.pytest.skip_mips64el(*args, **kwargs)¶
Skip test if current environment is
MIPS64EL(i.e., whenis_mips64el()returnsTrue).
- @extra_platforms.pytest.skip_mipsel(*args, **kwargs)¶
Skip test if current environment is
MIPSEL(i.e., whenis_mipsel()returnsTrue).
- @extra_platforms.pytest.skip_netbsd(*args, **kwargs)¶
Skip test if current environment is
NETBSD(i.e., whenis_netbsd()returnsTrue).
- @extra_platforms.pytest.skip_nobara(*args, **kwargs)¶
Skip test if current environment is
NOBARA(i.e., whenis_nobara()returnsTrue).
- @extra_platforms.pytest.skip_openbsd(*args, **kwargs)¶
Skip test if current environment is
OPENBSD(i.e., whenis_openbsd()returnsTrue).
- @extra_platforms.pytest.skip_opensuse(*args, **kwargs)¶
Skip test if current environment is
OPENSUSE(i.e., whenis_opensuse()returnsTrue).
- @extra_platforms.pytest.skip_oracle(*args, **kwargs)¶
Skip test if current environment is
ORACLE(i.e., whenis_oracle()returnsTrue).
- @extra_platforms.pytest.skip_other_posix(*args, **kwargs)¶
Skip test if current environment matches any member of the
OTHER_POSIXgroup (i.e., whenis_other_posix()returnsTrue).
- @extra_platforms.pytest.skip_parallels(*args, **kwargs)¶
Skip test if current environment is
PARALLELS(i.e., whenis_parallels()returnsTrue).
- @extra_platforms.pytest.skip_pidora(*args, **kwargs)¶
Skip test if current environment is
PIDORA(i.e., whenis_pidora()returnsTrue).
- @extra_platforms.pytest.skip_powerpc(*args, **kwargs)¶
Skip test if current environment matches any member of the
POWERPCgroup (i.e., whenis_powerpc()returnsTrue).
- @extra_platforms.pytest.skip_ppc(*args, **kwargs)¶
Skip test if current environment is
PPC(i.e., whenis_ppc()returnsTrue).
- @extra_platforms.pytest.skip_ppc64(*args, **kwargs)¶
Skip test if current environment is
PPC64(i.e., whenis_ppc64()returnsTrue).
- @extra_platforms.pytest.skip_ppc64le(*args, **kwargs)¶
Skip test if current environment is
PPC64LE(i.e., whenis_ppc64le()returnsTrue).
- @extra_platforms.pytest.skip_raspbian(*args, **kwargs)¶
Skip test if current environment is
RASPBIAN(i.e., whenis_raspbian()returnsTrue).
- @extra_platforms.pytest.skip_rhel(*args, **kwargs)¶
Skip test if current environment is
RHEL(i.e., whenis_rhel()returnsTrue).
- @extra_platforms.pytest.skip_riscv(*args, **kwargs)¶
Skip test if current environment matches any member of the
RISCVgroup (i.e., whenis_riscv()returnsTrue).
- @extra_platforms.pytest.skip_riscv32(*args, **kwargs)¶
Skip test if current environment is
RISCV32(i.e., whenis_riscv32()returnsTrue).
- @extra_platforms.pytest.skip_riscv64(*args, **kwargs)¶
Skip test if current environment is
RISCV64(i.e., whenis_riscv64()returnsTrue).
- @extra_platforms.pytest.skip_rocky(*args, **kwargs)¶
Skip test if current environment is
ROCKY(i.e., whenis_rocky()returnsTrue).
- @extra_platforms.pytest.skip_s390x(*args, **kwargs)¶
Skip test if current environment is
S390X(i.e., whenis_s390x()returnsTrue).
- @extra_platforms.pytest.skip_scientific(*args, **kwargs)¶
Skip test if current environment is
SCIENTIFIC(i.e., whenis_scientific()returnsTrue).
- @extra_platforms.pytest.skip_slackware(*args, **kwargs)¶
Skip test if current environment is
SLACKWARE(i.e., whenis_slackware()returnsTrue).
- @extra_platforms.pytest.skip_sles(*args, **kwargs)¶
Skip test if current environment is
SLES(i.e., whenis_sles()returnsTrue).
- @extra_platforms.pytest.skip_solaris(*args, **kwargs)¶
Skip test if current environment is
SOLARIS(i.e., whenis_solaris()returnsTrue).
- @extra_platforms.pytest.skip_sparc(*args, **kwargs)¶
Skip test if current environment is
SPARC(i.e., whenis_sparc()returnsTrue).
- @extra_platforms.pytest.skip_sparc64(*args, **kwargs)¶
Skip test if current environment is
SPARC64(i.e., whenis_sparc64()returnsTrue).
- @extra_platforms.pytest.skip_sunos(*args, **kwargs)¶
Skip test if current environment is
SUNOS(i.e., whenis_sunos()returnsTrue).
- @extra_platforms.pytest.skip_system_v(*args, **kwargs)¶
Skip test if current environment matches any member of the
SYSTEM_Vgroup (i.e., whenis_system_v()returnsTrue).
- @extra_platforms.pytest.skip_teamcity(*args, **kwargs)¶
Skip test if current environment is
TEAMCITY(i.e., whenis_teamcity()returnsTrue).
- @extra_platforms.pytest.skip_travis_ci(*args, **kwargs)¶
Skip test if current environment is
TRAVIS_CI(i.e., whenis_travis_ci()returnsTrue).
- @extra_platforms.pytest.skip_tumbleweed(*args, **kwargs)¶
Skip test if current environment is
TUMBLEWEED(i.e., whenis_tumbleweed()returnsTrue).
- @extra_platforms.pytest.skip_tuxedo(*args, **kwargs)¶
Skip test if current environment is
TUXEDO(i.e., whenis_tuxedo()returnsTrue).
- @extra_platforms.pytest.skip_ubuntu(*args, **kwargs)¶
Skip test if current environment is
UBUNTU(i.e., whenis_ubuntu()returnsTrue).
- @extra_platforms.pytest.skip_ultramarine(*args, **kwargs)¶
Skip test if current environment is
ULTRAMARINE(i.e., whenis_ultramarine()returnsTrue).
- @extra_platforms.pytest.skip_unix(*args, **kwargs)¶
Skip test if current environment matches any member of the
UNIXgroup (i.e., whenis_unix()returnsTrue).
- @extra_platforms.pytest.skip_unix_layers(*args, **kwargs)¶
Skip test if current environment matches any member of the
UNIX_LAYERSgroup (i.e., 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 (i.e., whenis_unix_not_macos()returnsTrue).
- @extra_platforms.pytest.skip_unknown(*args, **kwargs)¶
Skip test if current environment matches any member of the
UNKNOWNgroup (i.e., whenis_unknown()returnsTrue).
- @extra_platforms.pytest.skip_unknown_architecture(*args, **kwargs)¶
Skip test if current environment is
UNKNOWN_ARCHITECTURE(i.e., whenis_unknown_architecture()returnsTrue).
- @extra_platforms.pytest.skip_unknown_ci(*args, **kwargs)¶
Skip test if current environment is
UNKNOWN_CI(i.e., whenis_unknown_ci()returnsTrue).
- @extra_platforms.pytest.skip_unknown_platform(*args, **kwargs)¶
Skip test if current environment is
UNKNOWN_PLATFORM(i.e., whenis_unknown_platform()returnsTrue).
- @extra_platforms.pytest.skip_wasm32(*args, **kwargs)¶
Skip test if current environment is
WASM32(i.e., whenis_wasm32()returnsTrue).
- @extra_platforms.pytest.skip_wasm64(*args, **kwargs)¶
Skip test if current environment is
WASM64(i.e., whenis_wasm64()returnsTrue).
- @extra_platforms.pytest.skip_webassembly(*args, **kwargs)¶
Skip test if current environment matches any member of the
WEBASSEMBLYgroup (i.e., whenis_webassembly()returnsTrue).
- @extra_platforms.pytest.skip_windows(*args, **kwargs)¶
Skip test if current environment is
WINDOWS(i.e., whenis_windows()returnsTrue).
- @extra_platforms.pytest.skip_wsl1(*args, **kwargs)¶
Skip test if current environment is
WSL1(i.e., whenis_wsl1()returnsTrue).
- @extra_platforms.pytest.skip_wsl2(*args, **kwargs)¶
Skip test if current environment is
WSL2(i.e., whenis_wsl2()returnsTrue).
- @extra_platforms.pytest.skip_x86(*args, **kwargs)¶
Skip test if current environment matches any member of the
X86group (i.e., whenis_x86()returnsTrue).
- @extra_platforms.pytest.skip_x86_64(*args, **kwargs)¶
Skip test if current environment is
X86_64(i.e., whenis_x86_64()returnsTrue).
- @extra_platforms.pytest.skip_xenserver(*args, **kwargs)¶
Skip test if current environment is
XENSERVER(i.e., whenis_xenserver()returnsTrue).
Unless decorators¶
- @extra_platforms.pytest.unless_aarch64(*args, **kwargs)¶
Run test only if current environment is
AARCH64(i.e., whenis_aarch64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_aix(*args, **kwargs)¶
Run test only if current environment is
AIX(i.e., whenis_aix()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_architecture(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_ARCHITECTURESgroup (i.e., 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 (i.e., 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 (i.e., 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 (i.e., 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 (i.e., whenis_any_platform()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_sparc(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_SPARCgroup (i.e., whenis_any_sparc()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_any_trait(*args, **kwargs)¶
Run test only if current environment matches any member of the
ALL_TRAITSgroup (i.e., 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 (i.e., whenis_any_windows()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_altlinux(*args, **kwargs)¶
Run test only if current environment is
ALTLINUX(i.e., whenis_altlinux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_amzn(*args, **kwargs)¶
Run test only if current environment is
AMZN(i.e., whenis_amzn()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_android(*args, **kwargs)¶
Run test only if current environment is
ANDROID(i.e., whenis_android()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_arch(*args, **kwargs)¶
Run test only if current environment is
ARCH(i.e., 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 (i.e., 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 (i.e., whenis_arch_64_bit()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_arm(*args, **kwargs)¶
Run test only if current environment is
ARM(i.e., whenis_arm()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_armv5tel(*args, **kwargs)¶
Run test only if current environment is
ARMV5TEL(i.e., whenis_armv5tel()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_armv6l(*args, **kwargs)¶
Run test only if current environment is
ARMV6L(i.e., whenis_armv6l()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_armv7l(*args, **kwargs)¶
Run test only if current environment is
ARMV7L(i.e., whenis_armv7l()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_armv8l(*args, **kwargs)¶
Run test only if current environment is
ARMV8L(i.e., whenis_armv8l()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_azure_pipelines(*args, **kwargs)¶
Run test only if current environment is
AZURE_PIPELINES(i.e., whenis_azure_pipelines()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_bamboo(*args, **kwargs)¶
Run test only if current environment is
BAMBOO(i.e., whenis_bamboo()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_bsd(*args, **kwargs)¶
Run test only if current environment matches any member of the
BSDgroup (i.e., 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 (i.e., whenis_bsd_not_macos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_buildkite(*args, **kwargs)¶
Run test only if current environment is
BUILDKITE(i.e., whenis_buildkite()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_buildroot(*args, **kwargs)¶
Run test only if current environment is
BUILDROOT(i.e., whenis_buildroot()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cachyos(*args, **kwargs)¶
Run test only if current environment is
CACHYOS(i.e., whenis_cachyos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_centos(*args, **kwargs)¶
Run test only if current environment is
CENTOS(i.e., whenis_centos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_circle_ci(*args, **kwargs)¶
Run test only if current environment is
CIRCLE_CI(i.e., whenis_circle_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cirrus_ci(*args, **kwargs)¶
Run test only if current environment is
CIRRUS_CI(i.e., whenis_cirrus_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cloudlinux(*args, **kwargs)¶
Run test only if current environment is
CLOUDLINUX(i.e., whenis_cloudlinux()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_codebuild(*args, **kwargs)¶
Run test only if current environment is
CODEBUILD(i.e., whenis_codebuild()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_cygwin(*args, **kwargs)¶
Run test only if current environment is
CYGWIN(i.e., whenis_cygwin()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_debian(*args, **kwargs)¶
Run test only if current environment is
DEBIAN(i.e., whenis_debian()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_dragonfly_bsd(*args, **kwargs)¶
Run test only if current environment is
DRAGONFLY_BSD(i.e., whenis_dragonfly_bsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_exherbo(*args, **kwargs)¶
Run test only if current environment is
EXHERBO(i.e., whenis_exherbo()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_fedora(*args, **kwargs)¶
Run test only if current environment is
FEDORA(i.e., whenis_fedora()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_freebsd(*args, **kwargs)¶
Run test only if current environment is
FREEBSD(i.e., whenis_freebsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_gentoo(*args, **kwargs)¶
Run test only if current environment is
GENTOO(i.e., whenis_gentoo()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_github_ci(*args, **kwargs)¶
Run test only if current environment is
GITHUB_CI(i.e., whenis_github_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_gitlab_ci(*args, **kwargs)¶
Run test only if current environment is
GITLAB_CI(i.e., whenis_gitlab_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_guix(*args, **kwargs)¶
Run test only if current environment is
GUIX(i.e., whenis_guix()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_haiku(*args, **kwargs)¶
Run test only if current environment is
HAIKU(i.e., whenis_haiku()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_heroku_ci(*args, **kwargs)¶
Run test only if current environment is
HEROKU_CI(i.e., whenis_heroku_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_hurd(*args, **kwargs)¶
Run test only if current environment is
HURD(i.e., whenis_hurd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_i386(*args, **kwargs)¶
Run test only if current environment is
I386(i.e., whenis_i386()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_i586(*args, **kwargs)¶
Run test only if current environment is
I586(i.e., whenis_i586()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_i686(*args, **kwargs)¶
Run test only if current environment is
I686(i.e., 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 (i.e., whenis_ibm_mainframe()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ibm_powerkvm(*args, **kwargs)¶
Run test only if current environment is
IBM_POWERKVM(i.e., whenis_ibm_powerkvm()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_illumos(*args, **kwargs)¶
Run test only if current environment is
ILLUMOS(i.e., whenis_illumos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_kvmibm(*args, **kwargs)¶
Run test only if current environment is
KVMIBM(i.e., whenis_kvmibm()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_linux(*args, **kwargs)¶
Run test only if current environment matches any member of the
LINUXgroup (i.e., 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 (i.e., 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 (i.e., whenis_linux_like()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_linuxmint(*args, **kwargs)¶
Run test only if current environment is
LINUXMINT(i.e., whenis_linuxmint()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_loongarch(*args, **kwargs)¶
Run test only if current environment matches any member of the
LOONGARCHgroup (i.e., whenis_loongarch()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_loongarch64(*args, **kwargs)¶
Run test only if current environment is
LOONGARCH64(i.e., whenis_loongarch64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_macos(*args, **kwargs)¶
Run test only if current environment is
MACOS(i.e., whenis_macos()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mageia(*args, **kwargs)¶
Run test only if current environment is
MAGEIA(i.e., whenis_mageia()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mandriva(*args, **kwargs)¶
Run test only if current environment is
MANDRIVA(i.e., whenis_mandriva()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_midnightbsd(*args, **kwargs)¶
Run test only if current environment is
MIDNIGHTBSD(i.e., whenis_midnightbsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mips(*args, **kwargs)¶
Run test only if current environment is
MIPS(i.e., whenis_mips()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mips64(*args, **kwargs)¶
Run test only if current environment is
MIPS64(i.e., whenis_mips64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mips64el(*args, **kwargs)¶
Run test only if current environment is
MIPS64EL(i.e., whenis_mips64el()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_mipsel(*args, **kwargs)¶
Run test only if current environment is
MIPSEL(i.e., whenis_mipsel()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_netbsd(*args, **kwargs)¶
Run test only if current environment is
NETBSD(i.e., whenis_netbsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_nobara(*args, **kwargs)¶
Run test only if current environment is
NOBARA(i.e., whenis_nobara()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_openbsd(*args, **kwargs)¶
Run test only if current environment is
OPENBSD(i.e., whenis_openbsd()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_opensuse(*args, **kwargs)¶
Run test only if current environment is
OPENSUSE(i.e., whenis_opensuse()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_oracle(*args, **kwargs)¶
Run test only if current environment is
ORACLE(i.e., whenis_oracle()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_other_posix(*args, **kwargs)¶
Run test only if current environment matches any member of the
OTHER_POSIXgroup (i.e., whenis_other_posix()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_parallels(*args, **kwargs)¶
Run test only if current environment is
PARALLELS(i.e., whenis_parallels()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_pidora(*args, **kwargs)¶
Run test only if current environment is
PIDORA(i.e., whenis_pidora()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_powerpc(*args, **kwargs)¶
Run test only if current environment matches any member of the
POWERPCgroup (i.e., whenis_powerpc()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ppc(*args, **kwargs)¶
Run test only if current environment is
PPC(i.e., whenis_ppc()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ppc64(*args, **kwargs)¶
Run test only if current environment is
PPC64(i.e., whenis_ppc64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ppc64le(*args, **kwargs)¶
Run test only if current environment is
PPC64LE(i.e., whenis_ppc64le()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_raspbian(*args, **kwargs)¶
Run test only if current environment is
RASPBIAN(i.e., whenis_raspbian()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_rhel(*args, **kwargs)¶
Run test only if current environment is
RHEL(i.e., whenis_rhel()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_riscv(*args, **kwargs)¶
Run test only if current environment matches any member of the
RISCVgroup (i.e., whenis_riscv()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_riscv32(*args, **kwargs)¶
Run test only if current environment is
RISCV32(i.e., whenis_riscv32()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_riscv64(*args, **kwargs)¶
Run test only if current environment is
RISCV64(i.e., whenis_riscv64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_rocky(*args, **kwargs)¶
Run test only if current environment is
ROCKY(i.e., whenis_rocky()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_s390x(*args, **kwargs)¶
Run test only if current environment is
S390X(i.e., whenis_s390x()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_scientific(*args, **kwargs)¶
Run test only if current environment is
SCIENTIFIC(i.e., whenis_scientific()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_slackware(*args, **kwargs)¶
Run test only if current environment is
SLACKWARE(i.e., whenis_slackware()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sles(*args, **kwargs)¶
Run test only if current environment is
SLES(i.e., whenis_sles()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_solaris(*args, **kwargs)¶
Run test only if current environment is
SOLARIS(i.e., whenis_solaris()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sparc(*args, **kwargs)¶
Run test only if current environment is
SPARC(i.e., whenis_sparc()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sparc64(*args, **kwargs)¶
Run test only if current environment is
SPARC64(i.e., whenis_sparc64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_sunos(*args, **kwargs)¶
Run test only if current environment is
SUNOS(i.e., 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 (i.e., whenis_system_v()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_teamcity(*args, **kwargs)¶
Run test only if current environment is
TEAMCITY(i.e., whenis_teamcity()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_travis_ci(*args, **kwargs)¶
Run test only if current environment is
TRAVIS_CI(i.e., whenis_travis_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_tumbleweed(*args, **kwargs)¶
Run test only if current environment is
TUMBLEWEED(i.e., whenis_tumbleweed()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_tuxedo(*args, **kwargs)¶
Run test only if current environment is
TUXEDO(i.e., whenis_tuxedo()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ubuntu(*args, **kwargs)¶
Run test only if current environment is
UBUNTU(i.e., whenis_ubuntu()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_ultramarine(*args, **kwargs)¶
Run test only if current environment is
ULTRAMARINE(i.e., whenis_ultramarine()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unix(*args, **kwargs)¶
Run test only if current environment matches any member of the
UNIXgroup (i.e., 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 (i.e., 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 (i.e., 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 (i.e., whenis_unknown()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown_architecture(*args, **kwargs)¶
Run test only if current environment is
UNKNOWN_ARCHITECTURE(i.e., whenis_unknown_architecture()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown_ci(*args, **kwargs)¶
Run test only if current environment is
UNKNOWN_CI(i.e., whenis_unknown_ci()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_unknown_platform(*args, **kwargs)¶
Run test only if current environment is
UNKNOWN_PLATFORM(i.e., whenis_unknown_platform()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_wasm32(*args, **kwargs)¶
Run test only if current environment is
WASM32(i.e., whenis_wasm32()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_wasm64(*args, **kwargs)¶
Run test only if current environment is
WASM64(i.e., whenis_wasm64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_webassembly(*args, **kwargs)¶
Run test only if current environment matches any member of the
WEBASSEMBLYgroup (i.e., whenis_webassembly()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_windows(*args, **kwargs)¶
Run test only if current environment is
WINDOWS(i.e., whenis_windows()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_wsl1(*args, **kwargs)¶
Run test only if current environment is
WSL1(i.e., whenis_wsl1()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_wsl2(*args, **kwargs)¶
Run test only if current environment is
WSL2(i.e., whenis_wsl2()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_x86(*args, **kwargs)¶
Run test only if current environment matches any member of the
X86group (i.e., whenis_x86()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_x86_64(*args, **kwargs)¶
Run test only if current environment is
X86_64(i.e., whenis_x86_64()returnsTrue). Skip otherwise.
- @extra_platforms.pytest.unless_xenserver(*args, **kwargs)¶
Run test only if current environment is
XENSERVER(i.e., whenis_xenserver()returnsTrue). Skip otherwise.