-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter known warnings in tests and raise on others (#893)
* Filter expected (Jupytext) warnings in tests * Turn all warnings into errors (excepted few known ones) * Ignore all warnings in test_utf8_out_331 (hard to catch since they happen in "err")
- Loading branch information
Showing
5 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
[build-system] | ||
requires = ["jupyter_packaging~=0.7.9", "jupyterlab>=3.0.0,==3.*", "setuptools>=40.8.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
[tool.pytest.ini_options] | ||
filterwarnings = [ | ||
# Uncomment this "error" to turn all unfiltered warnings into errors | ||
"error", | ||
# use single quote to denote raw strings in toml | ||
'ignore:Passing unrecognized arguments to super\(KernelSpec\).__init__:DeprecationWarning', | ||
# In many tests | ||
"ignore:Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release:DeprecationWarning", | ||
# in test_utf8_out_331 and two others | ||
'ignore:Exception ignored in. <function Context.__del__:pytest.PytestUnraisableExceptionWarning', | ||
'ignore:.*contextfilter.* renamed to .*pass_context:DeprecationWarning', | ||
# in test_cli_expect_errors and two others | ||
'ignore:Exception ignored in. <socket.socket:pytest.PytestUnraisableExceptionWarning', | ||
# test_config_jupytext_jupyter_fs_meta_manager | ||
'ignore:The alias `_\(\)` will be deprecated. Use `_i18n\(\)` instead.:FutureWarning', | ||
# Conda/Python 3.7/Windows - ImportError while loading conftest | ||
"ignore:the imp module is deprecated in favour of importlib:DeprecationWarning" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters