Show warnings during tests

This commit is contained in:
Matthias Bussonnier 2016-01-09 13:59:51 +01:00
parent 6c87dd9246
commit 6ab2cd0dd6
3 changed files with 11 additions and 2 deletions

View File

@ -17,7 +17,7 @@ from ..filecheckpoints import GenericFileCheckpoints
from traitlets.config import Config
from notebook.utils import url_path_join, url_escape, to_os_path
from notebook.tests.launchnotebook import NotebookTestBase, assert_http_error
from nbformat import read, write, from_dict
from nbformat import write, from_dict
from nbformat.v4 import (
new_notebook, new_markdown_cell,
)

View File

@ -1,2 +1,11 @@
[bdist_wheel]
universal=1
[nosetests]
warningfilters=module |.* |DeprecationWarning |notebook.*
default |.* | Warning | notebook.*
ignore |.*metadata.* |DeprecationWarning |notebook.*
ignore |.*schema.* |UserWarning |nbfor.*
ignore |The 'warn' method is deprecated, use 'warning' instead | DeprecationWarning |notebook.*
error |encodestring\(\) is a deprecated alias, use encodebytes\(\)| DeprecationWarning | notebook.*

View File

@ -157,7 +157,7 @@ extras_require = {
':sys_platform != "win32"': ['terminado>=0.3.3'],
'doc': ['Sphinx>=1.1'],
'test:python_version == "2.7"': ['mock'],
'test': ['nose', 'requests'],
'test': ['nose', 'requests', 'nose_warnings_filters'],
}
if 'setuptools' in sys.modules: