Merge pull request #144840 from misuzu/slackclient-darwin-fix

python3Packages.slackclient: disable tests on darwin
This commit is contained in:
Thiago Kenji Okada 2021-11-07 22:09:04 -03:00 committed by GitHub
commit 4f6f9b28e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, aiohttp
, buildPythonPackage
, codecov
@ -51,7 +52,18 @@ buildPythonPackage rec {
# Exclude tests that requires network features
pytestFlagsArray = [ "--ignore=integration_tests" ];
disabledTests = [ "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" ];
disabledTests = [
"test_start_raises_an_error_if_rtm_ws_url_is_not_returned"
] ++ lib.optionals stdenv.isDarwin [
# these fail with `ConnectionResetError: [Errno 54] Connection reset by peer`
"test_issue_690_oauth_access"
"test_issue_690_oauth_v2_access"
"test_send"
"test_send_attachments"
"test_send_blocks"
"test_send_dict"
];
pythonImportsCheck = [ "slack" ];