Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Markers for pytest to skip tests on specific platforms

Project Description

Markers for pytest to skip tests on specific platforms


This plugin adds the following markers to pytest:

  • posix: Skipped except on a POSIX os (Linux/OS X, != 'posix')
  • windows: Skipped except on Windows ( != 'nt')
  • linux: Skipped except on Linux (sys.platform.startswith('linux'))
  • osx: Skipped except on OS X (sys.platform != 'darwin')
  • not_osx: Skipped on OS X (sys.platform == 'darwin')
  • not_frozen: Skipped when frozen (getattr(sys, 'frozen', False))
  • frozen: Skipped except when frozen (not getattr(sys, 'frozen', False))
  • ci: Skipped except on CI systems ('CI' not in os.environ)
  • not_ci: Skipped on CI systems ('CI' in os.environ)


You can install “pytest-platform-markers” via pip from PyPI:

$ pip install pytest-platform-markers


Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.


Distributed under the terms of the MIT license, “pytest-platform-markers” is free and open source software


If you encounter any problems, please file an issue along with a detailed description.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.0 kB) Copy SHA256 Hash SHA256
Source None Feb 26, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting