pythonPackages.cryptography: ignore pytest warnings

The test suite was generating a lot of warnings, causing the hydra build
to fail. Unfortunately, PYTHONWARNINGS env var is completely ignored.
This commit is contained in:
Frederik Rietdijk 2018-11-11 08:55:35 +01:00
parent 53d00c3351
commit ed8400bb9a

View File

@ -51,6 +51,10 @@ buildPythonPackage rec {
hypothesis
];
checkPhase = ''
py.test --disable-pytest-warnings tests
'';
# The test assumes that if we're on Sierra or higher, that we use `getentropy`, but for binary
# compatibility with pre-Sierra for binary caches, we hide that symbol so the library doesn't
# use it. This boils down to them checking compatibility with `getentropy` in two different places,