Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Mark tests as testing a deprecated feature with a warning note.

Project description


Mark tests as testing a deprecated feature with a warning note.

Requirement Status Coverage Status Version

Commits since latest release Supported versions Supported implementations


pip install pytest-deprecate


@pytest.mark.deprecated("This feature will be dropped in 2.7")
def test_old_feature():
    assert True


=========================================================================================================================== warnings summary ============================================================================================================================
  /Users/mikailkocak/Development/pytest-deprecate/example/ UserWarning: test_file:test_dummy is testing a deprecated feature: This feature will be removing in 2.7
    @pytest.mark.deprecated("This feature will be removing in 2.7")

Download files

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

Files for pytest-deprecate, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pytest-deprecate-1.0.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page