lol

Merge pull request #252604 from jbgosselin/python/twisted/fix-test-darwin

python3Packages.twisted: fix tests on Darwin

authored by

Mario Rodas and committed by
GitHub
76a09d84 70b66cdf

+4 -9
+4 -9
pkgs/development/python-modules/twisted/default.nix
··· 140 140 # twisted.python.runtime.platform.supportsINotify() == False 141 141 substituteInPlace src/twisted/python/_inotify.py --replace \ 142 142 "ctypes.util.find_library(\"c\")" "'${stdenv.cc.libc}/lib/libc.so.6'" 143 - '' + lib.optionalString (stdenv.isAarch64 && stdenv.isDarwin) '' 144 - echo 'AbortConnectionTests_AsyncioSelectorReactorTests.test_fullWriteBufferAfterByteExchange.skip = "Timeout after 120 seconds"' >> src/twisted/internet/test/test_tcp.py 145 - echo 'AbortConnectionTests_AsyncioSelectorReactorTests.test_resumeProducingAbort.skip = "Timeout after 120 seconds"' >> src/twisted/internet/test/test_tcp.py 146 - 147 - echo 'PosixReactorBaseTests.test_removeAllSkipsInternalReaders.skip = "Fails due to unclosed event loop"' >> src/twisted/internet/test/test_posixbase.py 148 - echo 'PosixReactorBaseTests.test_wakerIsInternalReader.skip = "Fails due to unclosed event loop"' >> src/twisted/internet/test/test_posixbase.py 149 - 150 - echo 'TCPPortTests.test_connectionLostFailed.skip = "Fails due to unclosed event loop"' >> src/twisted/internet/test/test_posixbase.py 143 + '' + lib.optionalString stdenv.isDarwin '' 144 + echo 'ProcessTestsBuilder_AsyncioSelectorReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py 145 + echo 'ProcessTestsBuilder_SelectReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py 151 146 ''; 152 147 153 148 # Generate Twisted's plug-in cache. Twisted users must do it as well. See ··· 171 166 export SOURCE_DATE_EPOCH=315532800 172 167 export PATH=$out/bin:$PATH 173 168 # race conditions when running in paralell 174 - ${python.interpreter} -m twisted.trial twisted 169 + ${python.interpreter} -m twisted.trial -j1 twisted 175 170 ''; 176 171 177 172 passthru = {