mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Show warnings during tests
This commit is contained in:
parent
6c87dd9246
commit
6ab2cd0dd6
@ -17,7 +17,7 @@ from ..filecheckpoints import GenericFileCheckpoints
|
|||||||
from traitlets.config import Config
|
from traitlets.config import Config
|
||||||
from notebook.utils import url_path_join, url_escape, to_os_path
|
from notebook.utils import url_path_join, url_escape, to_os_path
|
||||||
from notebook.tests.launchnotebook import NotebookTestBase, assert_http_error
|
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 (
|
from nbformat.v4 import (
|
||||||
new_notebook, new_markdown_cell,
|
new_notebook, new_markdown_cell,
|
||||||
)
|
)
|
||||||
|
@ -1,2 +1,11 @@
|
|||||||
[bdist_wheel]
|
[bdist_wheel]
|
||||||
universal=1
|
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.*
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -157,7 +157,7 @@ extras_require = {
|
|||||||
':sys_platform != "win32"': ['terminado>=0.3.3'],
|
':sys_platform != "win32"': ['terminado>=0.3.3'],
|
||||||
'doc': ['Sphinx>=1.1'],
|
'doc': ['Sphinx>=1.1'],
|
||||||
'test:python_version == "2.7"': ['mock'],
|
'test:python_version == "2.7"': ['mock'],
|
||||||
'test': ['nose', 'requests'],
|
'test': ['nose', 'requests', 'nose_warnings_filters'],
|
||||||
}
|
}
|
||||||
|
|
||||||
if 'setuptools' in sys.modules:
|
if 'setuptools' in sys.modules:
|
||||||
|
Loading…
Reference in New Issue
Block a user