celery: fix eventlet tests

This commit is contained in:
Joerg Thalheim
2017-09-25 23:23:38 +02:00
committed by makefu
parent dcc36a4a04
commit 1b628fb023
+6 -4
View File
@@ -2606,11 +2606,13 @@ in {
# https://github.com/celery/celery/pull/3736#issuecomment-274155454 from upstream # https://github.com/celery/celery/pull/3736#issuecomment-274155454 from upstream
patches = [ ../development/python-modules/celery/fix_endless_python3.6_loop_logger_isa.patch ]; patches = [ ../development/python-modules/celery/fix_endless_python3.6_loop_logger_isa.patch ];
## importing of eventlet fails because of: # make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
# _proto_tcp = socket.getprotobyname('tcp')
## raises an exception in the sandbox
preCheck = '' preCheck = ''
rm ./t/unit/concurrency/test_eventlet.py export NIX_REDIRECTS=/etc/protocols=${pkgs.iana-etc}/etc/protocols \
LD_PRELOAD=${pkgs.libredirect}/lib/libredirect.so
'';
postCheck = ''
unset NIX_REDIRECTS LD_PRELOAD
''; '';
buildInputs = with self; [ pytest case ]; buildInputs = with self; [ pytest case ];