Merge pull request #252604 from jbgosselin/python/twisted/fix-test-darwin
python3Packages.twisted: fix tests on Darwin
This commit is contained in:
commit
76a09d84da
|
@ -140,14 +140,9 @@ buildPythonPackage rec {
|
||||||
# twisted.python.runtime.platform.supportsINotify() == False
|
# twisted.python.runtime.platform.supportsINotify() == False
|
||||||
substituteInPlace src/twisted/python/_inotify.py --replace \
|
substituteInPlace src/twisted/python/_inotify.py --replace \
|
||||||
"ctypes.util.find_library(\"c\")" "'${stdenv.cc.libc}/lib/libc.so.6'"
|
"ctypes.util.find_library(\"c\")" "'${stdenv.cc.libc}/lib/libc.so.6'"
|
||||||
'' + lib.optionalString (stdenv.isAarch64 && stdenv.isDarwin) ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
echo 'AbortConnectionTests_AsyncioSelectorReactorTests.test_fullWriteBufferAfterByteExchange.skip = "Timeout after 120 seconds"' >> src/twisted/internet/test/test_tcp.py
|
echo 'ProcessTestsBuilder_AsyncioSelectorReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py
|
||||||
echo 'AbortConnectionTests_AsyncioSelectorReactorTests.test_resumeProducingAbort.skip = "Timeout after 120 seconds"' >> src/twisted/internet/test/test_tcp.py
|
echo 'ProcessTestsBuilder_SelectReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py
|
||||||
|
|
||||||
echo 'PosixReactorBaseTests.test_removeAllSkipsInternalReaders.skip = "Fails due to unclosed event loop"' >> src/twisted/internet/test/test_posixbase.py
|
|
||||||
echo 'PosixReactorBaseTests.test_wakerIsInternalReader.skip = "Fails due to unclosed event loop"' >> src/twisted/internet/test/test_posixbase.py
|
|
||||||
|
|
||||||
echo 'TCPPortTests.test_connectionLostFailed.skip = "Fails due to unclosed event loop"' >> src/twisted/internet/test/test_posixbase.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Generate Twisted's plug-in cache. Twisted users must do it as well. See
|
# Generate Twisted's plug-in cache. Twisted users must do it as well. See
|
||||||
|
@ -171,7 +166,7 @@ buildPythonPackage rec {
|
||||||
export SOURCE_DATE_EPOCH=315532800
|
export SOURCE_DATE_EPOCH=315532800
|
||||||
export PATH=$out/bin:$PATH
|
export PATH=$out/bin:$PATH
|
||||||
# race conditions when running in paralell
|
# race conditions when running in paralell
|
||||||
${python.interpreter} -m twisted.trial twisted
|
${python.interpreter} -m twisted.trial -j1 twisted
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
Loading…
Reference in a new issue