python3Packages.Pyro4: fix tests

This commit is contained in:
Jonathan Ringer 2020-11-30 16:15:53 -08:00 committed by Frederik Rietdijk
parent d4f96ddd9d
commit 3d3a388d0c

View File

@ -9,7 +9,7 @@
, msgpack , msgpack
, isPy27 , isPy27
, selectors34 , selectors34
, pytest , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -31,16 +31,16 @@ buildPythonPackage rec {
msgpack msgpack
]; ];
checkInputs = [ pytest ]; checkInputs = [ pytestCheckHook ];
# add testsupport.py to PATH # add testsupport.py to PATH
preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH";
# ignore network related tests, which fail in sandbox # ignore network related tests, which fail in sandbox
checkPhase = '' pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ];
PYTHONPATH=tests/PyroTests:$PYTHONPATH disabledTests = [
pytest -k 'not StartNSfunc \ "StartNSfunc"
and not Broadcast \ "Broadcast"
and not GetIP' \ "GetIP"
--ignore=tests/PyroTests/test_naming.py ];
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Distributed object middleware for Python (RPC)"; description = "Distributed object middleware for Python (RPC)";