pythonPackages.dill: enable tests
Disable a few failing tests, see comments for what's failing.
This commit is contained in:
parent
0eb33b0485
commit
29b98e4cf5
@ -1,7 +1,8 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, python
|
, isPy27
|
||||||
|
, nose
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -13,15 +14,20 @@ buildPythonPackage rec {
|
|||||||
sha256 = "42d8ef819367516592a825746a18073ced42ca169ab1f5f4044134703e7a049c";
|
sha256 = "42d8ef819367516592a825746a18073ced42ca169ab1f5f4044134703e7a049c";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Messy test suite. Even when running the tests like tox does, it fails
|
# python2 can't import a test fixture
|
||||||
doCheck = false;
|
doCheck = !isPy27;
|
||||||
|
checkInputs = [ nose ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
for test in tests/*.py; do
|
PYTHONPATH=$PWD/tests:$PYTHONPATH
|
||||||
${python.interpreter} $test
|
nosetests \
|
||||||
done
|
--ignore-files="test_classdef" \
|
||||||
|
--ignore-files="test_objects" \
|
||||||
|
--ignore-files="test_selected" \
|
||||||
|
--exclude="test_the_rest" \
|
||||||
|
--exclude="test_importable"
|
||||||
'';
|
'';
|
||||||
# Following error without setting checkPhase
|
# Tests seem to fail because of import pathing and referencing items/classes in modules.
|
||||||
# TypeError: don't know how to make test from: {'byref': False, 'recurse': False, 'protocol': 3, 'fmode': 0}
|
# Seems to be a Nix/pathing related issue, not the codebase, so disabling failing tests.
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Serialize all of python (almost)";
|
description = "Serialize all of python (almost)";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user