python3Packages.marisa-trie: disable broken tests
Some tests fail due hypothesis healthchecks, that complains about a temporary directory not being cleaned between tests. This is due to the hypothesis 6.x upgrade, while the library pins 2.0.0 from 2016.
This commit is contained in:
parent
a5adf85264
commit
492969e370
1 changed files with 16 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
, fetchPypi
|
||||
, cython
|
||||
, pytestrunner
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, hypothesis
|
||||
}:
|
||||
|
||||
|
@ -21,13 +21,26 @@ buildPythonPackage rec {
|
|||
--replace "hypothesis==" "hypothesis>="
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cython pytestrunner ];
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
pytestrunner
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
./update_cpp.sh
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest hypothesis ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
hypothesis
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Pins hypothesis==2.0.0 from 2016/01 which complains about
|
||||
# hypothesis.errors.FailedHealthCheck: tests/test_trie.py::[...] uses the 'tmpdir' fixture, which is reset between function calls but not between test cases generated by `@given(...)`.
|
||||
"test_saveload"
|
||||
"test_mmap"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Static memory-efficient Trie-like structures for Python (2.x and 3.x) based on marisa-trie C++ library";
|
||||
|
|
Loading…
Reference in a new issue