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.
details configuration.
Each line of warning filter is separated in maximum 4 sections, that match the first 4 sections of filterwarnings:
filterwarnings(action, message="", category=Warning, module="", lineno=0, append=False)
fields 2 to 4 can be omitted, ie to say 1 line can be of the following form:
action action| message action| message | category action| message | category | module
the value of each fields is treated the same as for filterwarnigns except: - whitespace are trimmed. - if the category has dots, the corresponding class try to be imported. If it does not have dots, the name is looked up in builtins or __builtins__
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nose_warnings_filters-0.1.1.tar.gz
.
File metadata
- Download URL: nose_warnings_filters-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a14773eb8f00ef0b08415ac6ff0058170ac52b4c07fb8c631a5bdd01051b1be4 |
|
MD5 | 5e6ad5ecbb6d6c343eed76d88b7d0132 |
|
BLAKE2b-256 | 8379755ea276f984e88e835b47d65e3ef09fac83f5b87e6258f5e65e5895c988 |
File details
Details for the file nose_warnings_filters-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: nose_warnings_filters-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9fecbc7e4a1694a8e734d814d79a2cb7923c098fb5df99d1e537d562daac1ae |
|
MD5 | 42088d803980cd1db3ba910b67db978e |
|
BLAKE2b-256 | 28067e1aea44f890fa1c142cf3c55b01cfe7aad77b55f807ebf49fcefdeca0ee |