Skip to main content

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

Release files for nose_warnings_filters 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nose_warnings_filters 0.1.5
File Size Uploaded
nose_warnings_filters-0.1.5.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nose_warnings_filters 0.1.5
File Interpreter ABI Platform
nose_warnings_filters-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / nose_warnings_filters-0.1.5.tar.gz

Download URL nose_warnings_filters-0.1.5.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
456c5b2ccca24e1d00a7b558274ebf9318305813dcb9585951a73ae11d76bb9d
BLAKE2b-256 checksum
How to use checksums
aed3e938dcf676b40e599551976bacdbaf3c4e10c8f97d7fe65fbf4847615603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / nose_warnings_filters-0.1.5-py3-none-any.whl

Download URL nose_warnings_filters-0.1.5-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09ad91b734b4069c0ad2dd4a78abb5f02d7150847f954a013d49647fad77ae4e
BLAKE2b-256 checksum
How to use checksums
753943df25dd5eebcb60875a594e0e1591f7be21cfa1de331c15b9094f01894b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

1 release file

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

0.0.7

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page