Platform related utilities#

Platform related utilities.

pytestskipmarkers.utils.platform.is_windows()[source]#

Simple function to return if a host is Windows or not.

Return bool:

Return true on Windows

Return type:

bool

pytestskipmarkers.utils.platform.is_linux()[source]#

Simple function to return if a host is Linux or not.

Note for a proxy minion, we need to return something else :return bool: Return true on Linux

Return type:

bool

pytestskipmarkers.utils.platform.is_darwin()[source]#

Simple function to return if a host is Darwin (macOS) or not.

Return bool:

Return true on Darwin(macOS)

Return type:

bool

pytestskipmarkers.utils.platform.is_sunos()[source]#

Simple function to return if host is SunOS or not.

Return bool:

Return true on SunOS

Return type:

bool

pytestskipmarkers.utils.platform.is_smartos()[source]#

Simple function to return if host is SmartOS (Illumos) or not.

Return bool:

Return true on SmartOS (Illumos)

Return type:

bool

pytestskipmarkers.utils.platform.is_freebsd()[source]#

Simple function to return if host is FreeBSD or not.

Return bool:

Return true on FreeBSD

Return type:

bool

pytestskipmarkers.utils.platform.is_netbsd()[source]#

Simple function to return if host is NetBSD or not.

Return bool:

Return true on NetBSD

Return type:

bool

pytestskipmarkers.utils.platform.is_openbsd()[source]#

Simple function to return if host is OpenBSD or not.

Return bool:

Return true on OpenBSD

Return type:

bool

pytestskipmarkers.utils.platform.is_aix()[source]#

Simple function to return if host is AIX or not.

Return bool:

Return true on AIX

Return type:

bool

pytestskipmarkers.utils.platform.is_aarch64()[source]#

Simple function to return if host is AArch64 or not.

Return type:

bool

pytestskipmarkers.utils.platform.is_photonos()[source]#

Simple function to return if host is Photon OS or not.

Return type:

bool

pytestskipmarkers.utils.platform.is_spawning_platform()[source]#

Returns True if running on a platform which defaults multiprocessing to spawn.

Return type:

bool

pytestskipmarkers.utils.platform.on_platforms(windows=False, linux=False, darwin=False, sunos=False, smartos=False, freebsd=False, netbsd=False, openbsd=False, aix=False, aarch64=False, spawning=False, photonos=False)[source]#

Check to see if we’re on one of the provided platforms.

Parameters:
  • windows (bool) – When True, check if running on Windows.

  • linux (bool) – When True, check if running on Linux.

  • darwin (bool) – When True, check if running on Darwin.

  • sunos (bool) – When True, check if running on SunOS.

  • smartos (bool) – When True, check if running on SmartOS.

  • freebsd (bool) – When True, check if running on FreeBSD.

  • netbsd (bool) – When True, check if running on NetBSD.

  • openbsd (bool) – When True, check if running on OpenBSD.

  • aix (bool) – When True, check if running on AIX.

  • aarch64 (bool) – When True, check if running on AArch64.

  • spawning (bool) – When True, check if running on a platform which defaults multiprocessing to spawn

  • windows

  • linux

  • darwin

  • sunos

  • smartos

  • freebsd

  • netbsd

  • openbsd

  • aix

  • aarch64

  • spawning

  • photonos (bool) –

Return type:

bool

pytestskipmarkers.utils.platform.is_fips_enabled()[source]#

Check is FIPS is enabled.

Return bool:

Return true when enabled

Return type:

bool