pip-tools: disable tests that depend on a specific version of "six"
They broke after "six: 1.10.0 -> 1.11.0" (5d21308f81e8332e8743a2c807b6406d37642da9).
This commit is contained in:
parent
10d02b7c43
commit
2d2f5e1c4d
@ -15,15 +15,26 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [ pytest git glibcLocales mock ];
|
checkInputs = [ pytest git glibcLocales mock ];
|
||||||
propagatedBuildInputs = [ pip click six first setuptools_scm ];
|
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 = ''
|
checkPhase = ''
|
||||||
export HOME=$(mktemp -d) VIRTUAL_ENV=1
|
export HOME=$(mktemp -d) VIRTUAL_ENV=1
|
||||||
tests_without_network_access="
|
tests_without_network_access="
|
||||||
not test_realistic_complex_sub_dependencies \
|
not test_realistic_complex_sub_dependencies
|
||||||
and not test_editable_package_vcs \
|
and not test_editable_package_vcs
|
||||||
and not test_generate_hashes_all_platforms \
|
and not test_generate_hashes_all_platforms
|
||||||
and not test_generate_hashes_without_interfering_with_each_other \
|
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; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user