Skip to main content

Nose plugin to add warnings filters (turn them into error) using nose.cfg file.

Project description

Allow to inject warning filters during nosetest.

Put the same arguments as warnings.filterwarnings in setup.cfg at the root of your project. Separated each argument by pipes |, one filter per line. Whitespace are stripped.

for example:

[nosetests]
warningfilters=default         |.*            |DeprecationWarning |notebook.*
               ignore          |.*metadata.*  |DeprecationWarning |notebook.*
               once            |.*schema.*    |UserWarning        |nbfor.*
               error           |.*warn.*      |DeprecationWarning |notebook.services.contents.manager*

If you prefer another name for the configuration file, you can tell nose to load the configuration using the -c flag: run the tests with nosetests -c nose.cfg.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nose_warnings_filters-0.0.5-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nose_warnings_filters-0.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nose_warnings_filters-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da543bb6786b2f8c13bf8b2c2587991483e275b9f4b9b5382788d3a801ff075f
MD5 f661023570d75917f435c41f3e5784cd
BLAKE2b-256 7b48e0cb9298f1e8c4474720ad73bc8688c3b39b0db2dc308b321b0cefcb9f62

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page