Skip to content

Commit

Permalink
pip-tools: disable tests that depend on a specific version of "six"
Browse files Browse the repository at this point in the history
They broke after "six: 1.10.0 -> 1.11.0" (5d21308).
  • Loading branch information
orivej committed Nov 13, 2017
1 parent 10d02b7 commit 2d2f5e1
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions pkgs/development/python-modules/pip-tools/default.nix
Expand Up @@ -15,15 +15,26 @@ buildPythonPackage rec {
checkInputs = [ pytest git glibcLocales mock ];
propagatedBuildInputs = [ pip click six first setuptools_scm ];

disabledTests = stdenv.lib.concatMapStringsSep " and " (s: "not " + s) [
# Depend on network tests:
"test_editable_package_vcs"
"test_generate_hashes_all_platforms"
"test_generate_hashes_without_interfering_with_each_other"
"test_realistic_complex_sub_dependencies"
# Expect specific version of "six":
"test_editable_package"
"test_input_file_without_extension"
];

checkPhase = ''
export HOME=$(mktemp -d) VIRTUAL_ENV=1
tests_without_network_access="
not test_realistic_complex_sub_dependencies \
and not test_editable_package_vcs \
and not test_generate_hashes_all_platforms \
and not test_generate_hashes_without_interfering_with_each_other \
not test_realistic_complex_sub_dependencies
and not test_editable_package_vcs
and not test_generate_hashes_all_platforms
and not test_generate_hashes_without_interfering_with_each_other
"
py.test -k "$tests_without_network_access"
py.test -k "${disabledTests}"
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit 2d2f5e1

Please sign in to comment.