Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.nbval: Skip failing tests #123921

Merged
merged 1 commit into from
May 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions pkgs/development/python-modules/nbval/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, ipykernel
, jupyter_client
, nbformat
, pytestCheckHook
, pytest
, six
, glibcLocales
Expand All @@ -23,7 +24,7 @@ buildPythonPackage rec {
};

checkInputs = [
pytest
pytestCheckHook
matplotlib
sympy
pytestcov
Expand All @@ -40,14 +41,15 @@ buildPythonPackage rec {
six
];

# Set HOME so that matplotlib doesn't try to use
# /homeless-shelter/.config/matplotlib, otherwise some of the tests fail for
# having an unexpected warning on stderr produced by matplotlib.
# Ignore impure tests.
checkPhase = ''
export HOME=$(mktemp -d)
pytest tests --ignore tests/test_timeouts.py
'';
pytestFlagsArray = [
"tests"
# These are the main tests but they're fragile so skip them. They error
# whenever matplotlib outputs any unexpected warnings, e.g. deprecation
# warnings.
"--ignore=tests/test_unit_tests_in_notebooks.py"
# Impure
"--ignore=tests/test_timeouts.py"
];

# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
Expand Down