git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pyro4: Fix tests on darwin
commit724abf2a02b817d33f9f5b151a02a8cfa8151ef5 authorSandro Jäckel <sandro.jaeckel@gmail.com> dateSat 2 Jan 2021, 20:23 (6 years ago) parent854096f
1 file changed+7−2
pkgs/development/python-modules/pyro4/default.nix+7−2
pkgs/development/python-modules/pyro4/default.nix+7−2
@@ -32,10 +32,15 @@ buildPythonPackage rec {
3232 ];
3333
3434 checkInputs = [ pytestCheckHook ];
35+
3536 # add testsupport.py to PATH
3637 preCheck = "PYTHONPATH=tests/PyroTests:$PYTHONPATH";
38+
3739 # ignore network related tests, which fail in sandbox
38− pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ];
40+ pytestFlagsArray = [ "--ignore=tests/PyroTests/test_naming.py" ]
41+ # test hangs on darwin with sandbox enabled
42+ ++ lib.optionals stdenv.isDarwin [ "--ignore=tests/PyroTests/test_daemon.py" ];
43+
3944 disabledTests = [
4045 "StartNSfunc"
4146 "Broadcast"
@@ -47,5 +52,5 @@ buildPythonPackage rec {
4752 homepage = "https://github.com/irmen/Pyro4";
4853 license = licenses.mit;
4954 maintainers = with maintainers; [ prusnak ];
50− };
55+ };
5156}