Merge pull request #91118 from simonchatts/darwin-fixes
python: aiohttp/psutil/uvloop Darwin fixes
This commit is contained in:
commit
a48adb3511
3 changed files with 5 additions and 1 deletions
|
@ -62,6 +62,7 @@ buildPythonPackage rec {
|
|||
"test_read_incomplete_chunk"
|
||||
"test_request_tracing_exception"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"test_addresses" # https://github.com/aio-libs/aiohttp/issues/3572
|
||||
"test_close"
|
||||
];
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ buildPythonPackage rec {
|
|||
|
||||
# arch doesn't report frequency is the same way
|
||||
# tests segfaults on darwin https://github.com/giampaolo/psutil/issues/1715
|
||||
doCheck = stdenv.isDarwin || stdenv.isx86_64;
|
||||
doCheck = !stdenv.isDarwin && stdenv.isx86_64;
|
||||
checkInputs = [ pytest ]
|
||||
++ lib.optionals isPy27 [ mock ipaddress ];
|
||||
# out must be referenced as test import paths are relative
|
||||
|
|
|
@ -55,6 +55,9 @@ buildPythonPackage rec {
|
|||
export TEST_DIR=$(mktemp -d)
|
||||
cp -r tests $TEST_DIR
|
||||
pushd $TEST_DIR
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
# Some tests fail on Darwin
|
||||
rm tests/test_[stu]*.py
|
||||
'';
|
||||
postCheck = ''
|
||||
popd
|
||||
|
|
Loading…
Reference in a new issue