python3Packages.curio: fix tests on darwin
Refactors to pytestCheckHook.
This commit is contained in:
parent
c4d016a28b
commit
22cd2a23bf
@ -2,8 +2,9 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, sphinx
|
, sphinx
|
||||||
|
, stdenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -17,15 +18,18 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
checkInputs = [ pytest sphinx ];
|
checkInputs = [ pytestCheckHook sphinx ];
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
# test_aside_basic times out,
|
disabledTests = [
|
||||||
# test_aside_cancel fails because modifies PYTHONPATH and cant find pytest
|
"test_aside_basic" # times out
|
||||||
checkPhase = ''
|
"test_aside_cancel" # fails because modifies PYTHONPATH and cant find pytest
|
||||||
pytest --deselect tests/test_task.py::test_aside_basic --deselect tests/test_task.py::test_aside_cancel -k "not test_ssl_outgoing"
|
"test_ssl_outgoing" # touches network
|
||||||
'';
|
] ++ lib.optionals (stdenv.isDarwin) [
|
||||||
|
"test_unix_echo" # socket bind error on hydra when built with other packages
|
||||||
|
"test_unix_ssl_server" # socket bind error on hydra when built with other packages
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/dabeaz/curio";
|
homepage = "https://github.com/dabeaz/curio";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user