pythonPackages.trio: fix tests

This commit is contained in:
Jonathan Ringer 2019-10-25 00:18:22 -07:00 committed by Frederik Rietdijk
parent a4fc8c4b93
commit 4e5fa8d6d3

View file

@ -29,8 +29,13 @@ buildPythonPackage rec {
checkInputs = [ astor pytest pyopenssl trustme jedi pylint yapf ];
# It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
checkPhase = ''
HOME="$(mktemp -d)" py.test -k 'not test_getnameinfo and not test_SocketType_resolve and not test_getprotobyname and not test_waitpid'
HOME=$TMPDIR py.test -k 'not getnameinfo \
and not SocketType_resolve \
and not getprotobyname \
and not waitpid \
and not static_tool_sees_all_symbols'
'';
propagatedBuildInputs = [
attrs
sortedcontainers