python3Packages.twisted: skip failing tests on aarch64-darwin

Seen on hydra for both python3.9 and python3.10 on aarch64-darwin
exclusively.
This commit is contained in:
Martin Weinelt 2022-07-22 17:12:45 +02:00 committed by Martin Weinelt
parent b5e4c14806
commit d6d2d6c6d7

View file

@ -104,6 +104,9 @@ buildPythonPackage rec {
# twisted.python.runtime.platform.supportsINotify() == False
substituteInPlace src/twisted/python/_inotify.py --replace \
"ctypes.util.find_library(\"c\")" "'${stdenv.cc.libc}/lib/libc.so.6'"
'' + lib.optionalString (stdenv.isAarch64 && stdenv.isDarwin) ''
echo 'AbortConnectionTests_AsyncioSelectorReactorTests.test_fullWriteBufferAfterByteExchange.skip = "Timeout after 120 seconds"' >> src/twisted/internet/test/test_tcp.py
echo 'AbortConnectionTests_AsyncioSelectorReactorTests.test_resumeProducingAbort.skip = "Timeout after 120 seconds"' >> src/twisted/internet/test/test_tcp.py
'';
# Generate Twisted's plug-in cache. Twisted users must do it as well. See