Allow to inject warning filters during ``nosetest``.
Project description
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__
test are failing
For some reasons in some systems tests are failing; it seem that this package have difficulty to self-test. That’s likely due to the fact that the tested package need to be in different namespaces, and by self-testing we break this assumption.
Home-page: https://github.com/Carreau/nose_warnings_filters Author: Matthias Bussonnier Author-email: bussonniermatthias@gmail.com License: MIT Description: UNKNOWN Platform: UNKNOWN Requires-Python: >=2.7
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.4.tar.gz
.
File metadata
- Download URL: nose_warnings_filters-0.1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f43c62870cb59a01797d54d6621ebdc975b0801af0e59f41ae5bf38a748adfd |
|
MD5 | 9c2cd5a3004f613b6df0329cc6993711 |
|
BLAKE2b-256 | 08fdded1667a205a575ae23672d723e0982c2ec9daf42f9436bf6acd0531fb74 |
File details
Details for the file nose_warnings_filters-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: nose_warnings_filters-0.1.4-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a62af34791b8da15aabbd2f336955cc236dc1bff43c4e9426e6e5135968989b9 |
|
MD5 | 32e710508c44e6c0ca9fa4efbee712b0 |
|
BLAKE2b-256 | ed99ced68e2fad80a04330923dc9dddc0e93478adbf161a3845aeaa79dfa892a |