diff options
author | Drew Risinger <drewrisinger@users.noreply.github.com> | 2020-01-20 18:15:10 -0500 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2020-02-18 18:34:09 +0100 |
commit | 29b98e4cf51530e4b9bb2aa00afe7678b262e912 (patch) | |
tree | 562b15296b1009f6f7076379872b6aea6b4ead87 | |
parent | 0eb33b0485b6a681aebdc99ce3c169c6faac1158 (diff) | |
download | nixpkgs-29b98e4cf51530e4b9bb2aa00afe7678b262e912.tar nixpkgs-29b98e4cf51530e4b9bb2aa00afe7678b262e912.tar.gz nixpkgs-29b98e4cf51530e4b9bb2aa00afe7678b262e912.tar.bz2 nixpkgs-29b98e4cf51530e4b9bb2aa00afe7678b262e912.tar.lz nixpkgs-29b98e4cf51530e4b9bb2aa00afe7678b262e912.tar.xz nixpkgs-29b98e4cf51530e4b9bb2aa00afe7678b262e912.tar.zst nixpkgs-29b98e4cf51530e4b9bb2aa00afe7678b262e912.zip |
pythonPackages.dill: enable tests
Disable a few failing tests, see comments for what's failing.
-rw-r--r-- | pkgs/development/python-modules/dill/default.nix | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/dill/default.nix b/pkgs/development/python-modules/dill/default.nix index 88ffbd32e9d..0983805780f 100644 --- a/pkgs/development/python-modules/dill/default.nix +++ b/pkgs/development/python-modules/dill/default.nix @@ -1,7 +1,8 @@ { lib , buildPythonPackage , fetchPypi -, python +, isPy27 +, nose }: buildPythonPackage rec { @@ -13,15 +14,20 @@ buildPythonPackage rec { sha256 = "42d8ef819367516592a825746a18073ced42ca169ab1f5f4044134703e7a049c"; }; - # Messy test suite. Even when running the tests like tox does, it fails - doCheck = false; + # python2 can't import a test fixture + doCheck = !isPy27; + checkInputs = [ nose ]; checkPhase = '' - for test in tests/*.py; do - ${python.interpreter} $test - done + PYTHONPATH=$PWD/tests:$PYTHONPATH + nosetests \ + --ignore-files="test_classdef" \ + --ignore-files="test_objects" \ + --ignore-files="test_selected" \ + --exclude="test_the_rest" \ + --exclude="test_importable" ''; - # Following error without setting checkPhase - # TypeError: don't know how to make test from: {'byref': False, 'recurse': False, 'protocol': 3, 'fmode': 0} + # Tests seem to fail because of import pathing and referencing items/classes in modules. + # Seems to be a Nix/pathing related issue, not the codebase, so disabling failing tests. meta = { description = "Serialize all of python (almost)"; |