Merge pull request #108253 from SuperSandro2000/pyro3-darwin

python3Packages.Pyro4: Fix tests on darwin
This commit is contained in:
Benjamin Hipple 2021-01-02 18:02:27 -05:00 committed by GitHub
commit 92a391c20b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,10 +32,15 @@ buildPythonPackage rec {
];
checkInputs = [ pytestCheckHook ];
# add testsupport.py to PATH
preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH";
# ignore network related tests, which fail in sandbox
pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ];
pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ]
# test hangs on darwin with sandbox enabled
++ lib.optionals stdenv.isDarwin [ "--ignore=tests/PyroTests/test_daemon.py" ];
disabledTests = [
"StartNSfunc"
"Broadcast"
@ -47,5 +52,5 @@ buildPythonPackage rec {
homepage = "https://github.com/irmen/Pyro4";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
};
}