diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2019-10-27 07:07:39 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2019-10-27 16:14:10 -0700 |
commit | 3ba8ce13dd815b50327aef77baa7da1987c88da9 (patch) | |
tree | 41d82591160668632d6e986fbe28dc5bfd7b1ffc /pkgs/development/python-modules/pyro4 | |
parent | 11f9145fb04de4eefb480d8936f31a76917788d2 (diff) |
pythonPackages.Pyro4: fix tests
Diffstat (limited to 'pkgs/development/python-modules/pyro4')
-rw-r--r-- | pkgs/development/python-modules/pyro4/default.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/pyro4/default.nix b/pkgs/development/python-modules/pyro4/default.nix index ac4848e63404f..fdeed6656237f 100644 --- a/pkgs/development/python-modules/pyro4/default.nix +++ b/pkgs/development/python-modules/pyro4/default.nix @@ -8,8 +8,8 @@ , cloudpickle , msgpack , isPy27 -, isPy33 , selectors34 +, pytest }: buildPythonPackage rec { @@ -23,7 +23,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ serpent - ] ++ lib.optionals (isPy27 || isPy33) [ selectors34 ]; + ] ++ lib.optionals isPy27 [ selectors34 ]; buildInputs = [ dill @@ -31,8 +31,15 @@ buildPythonPackage rec { msgpack ]; + checkInputs = [ pytest ]; + # add testsupport.py to PATH + # ignore network related tests, which fail in sandbox checkPhase = '' - ${python.interpreter} setup.py test + PYTHONPATH=tests/PyroTests:$PYTHONPATH + pytest -k 'not StartNSfunc \ + and not Broadcast \ + and not GetIP' \ + --ignore=tests/PyroTests/test_naming.py ''; meta = with stdenv.lib; { |