python3Packages.s3transfer: ignore test_compat on darwin (#155896)

This commit is contained in:
Luke Amdor 2022-01-22 20:58:48 -06:00 committed by GitHub
parent d49fc9bcad
commit 613441860f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@
, mock , mock
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, stdenv
, wheel , wheel
}: }:
@ -23,16 +24,9 @@ buildPythonPackage rec {
hash = "sha256-0Dl7oKB2xxq/a8do3HgBUIGay88yOGBUdOGo+QCtnUE="; hash = "sha256-0Dl7oKB2xxq/a8do3HgBUIGay88yOGBUdOGo+QCtnUE=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ botocore ];
botocore
];
buildInputs = [ buildInputs = [ docutils mock pytestCheckHook wheel ];
docutils
mock
pytestCheckHook
wheel
];
disabledTestPaths = [ disabledTestPaths = [
# Requires network access # Requires network access
@ -42,11 +36,13 @@ buildPythonPackage rec {
"tests/integration/test_processpool.py" "tests/integration/test_processpool.py"
"tests/integration/test_s3transfer.py" "tests/integration/test_s3transfer.py"
"tests/integration/test_upload.py" "tests/integration/test_upload.py"
]; ] ++
# There was a change in python 3.8 that defaults multiprocessing to spawn instead of fork on macOS
# See https://bugs.python.org/issue33725 and https://github.com/python/cpython/pull/13603.
# I suspect the underlying issue here is that upstream tests aren't compatible with spawn multiprocessing, and pass on linux where the default is still fork
lib.optionals stdenv.isDarwin [ "tests/unit/test_compat.py" ];
pythonImportsCheck = [ pythonImportsCheck = [ "s3transfer" ];
"s3transfer"
];
meta = with lib; { meta = with lib; {
description = "Library for managing Amazon S3 transfers"; description = "Library for managing Amazon S3 transfers";