aws / aws/aws-cli

1.27.146: pytest is failing in many units because it uses hardcoded `python` or `python.exe` python executable name

Open
#7,949 14 comments 0 reactions 0 assignees View on GitHub
feature-request p3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the bug

Looks like many pytest units are failing because it uses hardcoded `python` or `python.exe` python executable name.

### Expected Behavior

Instead using `pyhon` or `python.exe` it should be used `sys.executable`.

### Current Behavior

Here is pytest summary output

```console
=============================== warnings summary ===============================
tests/functional/cloudformation/test_create_stack.py:44
/home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/functional/cloudformation/test_create_stack.py:44: DeprecationWarning: invalid escape sequence \,
cmdline += ' --parameters ParameterKey=foo,ParameterValue=one\,two'

awscli/testutils.py:925
/home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/awscli/testutils.py:925: PytestCollectionWarning: cannot collect test class 'TestEventHandler' because it has a __init__ constructor (from: tests/functional/elb/test_register_instances_with_load_balancer.py)
class TestEventHandler(object):

tests/unit/test_paramfile.py:95
/home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/test_paramfile.py:95: DeprecationWarning: invalid escape sequence \.
with self.assertRaisesRegex(ResourceLoadingError, 'foo\.bar\.baz'):

tests/unit/test_paramfile.py:100
/home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/test_paramfile.py:100: DeprecationWarning: invalid escape sequence \.
with self.assertRaisesRegex(ResourceLoadingError, 'foo\.bar\.baz'):

tests/unit/test_utils.py:70
/home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/test_utils.py:70: DeprecationWarning: invalid escape sequence \,
self.assertEqual(split_on_commas('foo,bar=1\,2\,3,baz'),

tests/unit/customizations/emr/test_add_steps.py:215
/home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/customizations/emr/test_add_steps.py:215: DeprecationWarning: invalid escape sequence \,
'Properties=k1=v1\,k2=v2\,k3')

tests/unit/customizations/history/test_db.py:618
/home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/unit/customizations/history/test_db.py:618: DeprecationWarning: invalid escape sequence \e
'tuple': ('bar', 'baz', b'\xfe\ed')

tests/functional/docs/test_examples.py: 10400 warnings
/home/tkloczko/rpmbuild/BUILD/aws-cli-1.27.146/tests/functional/docs/test_examples.py:187: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
settings = docutils.frontend.OptionParser(

tests/functional/docs/test_examples.py: 707200 warnings
/usr/lib64/python3.8/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
option = self.option_class(*args, **kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
SKIPPED [1] tests/functional/ec2/test_create_tags.py:33: Unicode cmd line test only is relevant to python2.
SKIPPED [1] tests/functional/elasticbeanstalk/test_create_application.py:29: Unicode cmd line test only is relevant to python2.
SKIPPED [1] tests/functional/s3/test_cp_command.py:1151: Test requires awscrt to be installed
SKIPPED [1] tests/functional/s3/test_cp_command.py:1167: Test requires awscrt to be installed
SKIPPED [1] tests/unit/output/test_text_output.py:164: Text writer only vaild on py3.
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_cant_move_file_onto_itself_small_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_cant_move_large_file_onto_itself
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_local_to_s3
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_local
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_multipart
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_multipart_recursive
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_s3_to_s3_with_sig4
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_to_nonexistent_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestMoveCommand::test_mv_with_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestRm::test_rm_with_newlines
ERROR tests/integration/customizations/s3/test_plugin.py::TestRm::test_rm_with_page_size
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cleans_up_aborted_uploads
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_large_file_signature_v4
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_metadata
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_copy_metadata_directive
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_empty_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_s3_s3_multipart
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_to_and_from_s3
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_to_nonexistent_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_with_request_payer
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_cp_without_trailing_slash
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_ctrl_c_does_not_hang
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_empty_object
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_encrypted_kms_object
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_download_non_existent_key
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_guess_mime_type
ERROR tests/integration/customizations/s3/test_plugin.py::TestCp::test_website_redirect_ignore_paramfile
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_s3_to_s3_sync_with_plus_char_paginate
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_delete_locally
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_no_resync
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_to_from_s3
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_to_nonexistent_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_delete_across_sig4_regions
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_delete_option_with_same_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_empty_files
ERROR tests/integration/customizations/s3/test_plugin.py::TestSync::test_sync_with_plus_chars_paginate
ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_cp_region
ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_mv_large_file_region
ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_mv_region
ERROR tests/integration/customizations/s3/test_plugin.py::TestSourceRegion::test_sync_region
ERROR tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_is_special_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_no_exist
ERROR tests/integration/customizations/s3/test_plugin.py::TestWarnings::test_no_read_access
ERROR tests/integration/customizations/s3/test_plugin.py::TestUnableToWriteToFile::test_no_write_access_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestUnableToWriteToFile::test_no_write_access_small_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_bad_symlink
ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_follow_symlinks
ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_follow_symlinks_default
ERROR tests/integration/customizations/s3/test_plugin.py::TestSymlinks::test_no_follow_symlinks
ERROR tests/integration/customizations/s3/test_plugin.py::TestUnicode::test_cp
ERROR tests/integration/customizations/s3/test_plugin.py::TestUnicode::test_recursive_cp
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_bucket_with_s3_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_empty_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_fail
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_fail_recursive
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_non_existent_bucket
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_recursive
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_with_no_env_vars
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_with_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_ls_without_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestLs::test_only_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestMbRb::test_fail_mb_rb
ERROR tests/integration/customizations/s3/test_plugin.py::TestMbRb::test_mb_rb
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_and_success_output_only_show_errors
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_ouput_only_show_errors
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_ouput_quiet
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_error_output
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_no_progress
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_only_show_errors
ERROR tests/integration/customizations/s3/test_plugin.py::TestOutput::test_normal_output_quiet
ERROR tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun
ERROR tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun_download_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestDryrun::test_dryrun_large_files
ERROR tests/integration/customizations/s3/test_plugin.py::TestMemoryUtilization::test_stream_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestMemoryUtilization::test_transfer_single_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestWebsiteConfiguration::test_create_website_index_and_error_configuration
ERROR tests/integration/customizations/s3/test_plugin.py::TestWebsiteConfiguration::test_create_website_index_configuration
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_basic_exclude_filter_for_single_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_cwd_doesnt_matter
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_exclude_filter_with_delete
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_exclude_filter_with_relative_path
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_explicitly_exclude_single_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_filter_no_resync
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_filter_s3_with_prefix
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_recursive_exclude
ERROR tests/integration/customizations/s3/test_plugin.py::TestIncludeExcludeFilters::test_s3_filtering
ERROR tests/integration/customizations/s3/test_plugin.py::TestFileWithSpaces::test_sync_file_with_spaces
ERROR tests/integration/customizations/s3/test_plugin.py::TestFileWithSpaces::test_upload_download_file_with_spaces
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_download
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_multipart_download
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_multipart_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_unicode_download
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_unicode_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestStreams::test_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestLSWithProfile::test_can_ls_with_profile
ERROR tests/integration/customizations/s3/test_plugin.py::TestNoSignRequests::test_no_sign_request
ERROR tests/integration/customizations/s3/test_plugin.py::TestHonorsEndpointUrl::test_verify_endpoint_url_is_used
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_kms_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_kms_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_large_file_sse_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_smoke_sync_sse
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_smoke_sync_sse_kms
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_kms_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSERelatedParams::test_sse_with_kms_upload
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_can_delete_single_sse_c_object
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_smoke_sync_sse_c
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_copy
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_copy_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_upload_and_download
ERROR tests/integration/customizations/s3/test_plugin.py::TestSSECRelatedParams::test_sse_c_upload_and_download_large_file
ERROR tests/integration/customizations/s3/test_plugin.py::TestPresignCommand::test_can_retrieve_presigned_url
FAILED tests/functional/kinesis/test_remove_operations.py::TestKinesisRemoveOperations::test_subscribe_to_shard_removed
FAILED tests/functional/lex/test_remove_operations.py::TestLexV2RuntimeRemoveOperations::test_start_conversation_removed
FAILED tests/integration/test_assume_role.py::TestAssumeRoleCredentials::test_assume_role_with_credential_source
FAILED tests/integration/test_assume_role.py::TestAssumeRoleCredentials::test_recursive_assume_role
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_bad_lc_ctype_env_var_is_handled
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_ec2_describe_instances
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_error_msg_with_no_region_configured
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_operation_level
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_service_level
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_usage_top_level
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_help_with_warning_blocks
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_json_param_parsing
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_leftover_args_in_operation
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_make_requests_to_other_region
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_no_paginate_arg
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_no_sign_request
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_with_required_arg
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_operation_help_with_required_option
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_pagination_with_text_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_json
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_shorthand
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_with_bad_json
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_param_with_file
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_service_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_service_help_with_required_option
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_streaming_output_operation
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_table_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_top_level_options_debug
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_topic_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_topic_list_help_output
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_traceback_printed_when_debug_on
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_unknown_argument
FAILED tests/integration/test_cli.py::TestBasicCommandFunctionality::test_version
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_endpoint_url - Ass...
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_max_items - botoco...
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_no_paginate_and_original_args
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_no_pagination - bo...
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_no_sign_requests
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_profile_arg_has_precedence_over_env_vars
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_profile_arg_wins_over_profile_env_var
FAILED tests/integration/test_cli.py::TestGlobalArgs::test_query - botocore.e...
FAILED tests/integration/test_ec2.py::TestDescribeInstances::test_describe_instances_with_filter
FAILED tests/integration/test_ec2.py::TestDescribeInstances::test_describe_instances_with_id
FAILED tests/integration/test_ec2.py::TestDescribeSnapshots::test_describe_snapshot_with_snapshot_id
FAILED tests/integration/test_ec2.py::TestDescribeSnapshots::test_describe_snapshots_with_filter
FAILED tests/integration/test_ec2.py::TestDescribeVolumes::test_describe_volumes_with_filter
FAILED tests/integration/test_ec2.py::TestDescribeVolumes::test_describe_volumes_with_volume_id
FAILED tests/integration/test_smoke.py::test_can_make_success_request[autoscaling describe-account-limits]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[autoscaling describe-adjustment-types]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudformation describe-stacks]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudformation list-stacks]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudsearch describe-domains]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudsearch list-domain-names]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudtrail describe-trails]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cloudwatch list-metrics]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[cognito-identity list-identity-pools --max-results 1]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[datapipeline list-pipelines]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[directconnect describe-connections]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[dynamodb list-tables]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[ec2 describe-instances]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[ec2 describe-regions]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[elasticache describe-cache-clusters]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[elb describe-load-balancers]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[emr list-clusters]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[emr list-clusters --created-after 2014-11-24T00:00:00]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[iam list-users]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[kinesis list-streams]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[kms generate-random --number-of-bytes 128]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[logs describe-log-groups]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[opsworks describe-stacks]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[rds describe-db-instances]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[redshift describe-clusters]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[route53 list-hosted-zones]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[route53domains list-domains]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[s3api list-buckets]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[s3 ls]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[ses list-identities]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[sns list-topics]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[sqs list-queues]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[storagegateway list-gateways]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[swf list-domains --registration-status REGISTERED]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[swf list-open-workflow-executions --domain foo --start-time-filter oldestDate=1970-01-01]
FAILED tests/integration/test_smoke.py::test_can_make_success_request[rds wait db-instance-deleted --db-instance-identifier foo-123]
FAILED tests/integration/test_smoke.py::test_display_error_message[autoscaling attach-instances --auto-scaling-group-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[cloudformation cancel-update-stack --stack-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[cloudsearch describe-suggesters --domain-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[cloudtrail get-trail-status --name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[cognito-identity delete-identity-pool --identity-pool-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[datapipeline delete-pipeline --pipeline-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[directconnect delete-connection --connection-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[dynamodb delete-table --table-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[ec2 terminate-instances --instance-ids %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[elasticache delete-cache-cluster --cache-cluster-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[elb describe-load-balancers --load-balancer-names %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[emr list-instances --cluster-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[iam delete-user --user-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[kinesis delete-stream --stream-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[logs delete-log-group --log-group-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[opsworks delete-app --app-id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[rds delete-db-instance --db-instance-identifier %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[redshift delete-cluster --cluster-identifier %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[route53 delete-hosted-zone --id %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[route53domains get-domain-detail --domain-name %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[s3api head-bucket --bucket %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[ses set-identity-dkim-enabled --identity %s --dkim-enabled]
FAILED tests/integration/test_smoke.py::test_display_error_message[sns delete-endpoint --endpoint-arn %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[sqs delete-queue --queue-url %s]
FAILED tests/integration/test_smoke.py::test_display_error_message[storagegateway delete-gateway --gateway-arn foo-cli-test-foo-cli-test-foo-cli-test-%s]
FAILED tests/integration/test_smoke.py::test_display_error_message[swf deprecate-domain --name %s]
FAILED tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_iam
FAILED tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_s3api
FAILED tests/integration/customizations/test_generatecliskeleton.py::TestIntegGenerateCliSkeleton::test_generate_cli_skeleton_sqs
FAILED tests/integration/customizations/test_waiters.py::TestDynamoDBWait::test_wait_table_exists
FAILED tests/integration/customizations/history/test_show.py::TestShow::test_show
FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_page_size
FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_delete_directory
FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_directory
FAILED tests/integration/customizations/s3/test_filegenerator.py::S3FileGeneratorIntTest::test_s3_file
FAILED tests/unit/customizations/emr/test_emr_utils.py::TestEMRutils::test_which_with_existing_command
= 121 failed, 27482 passed, 5 skipped, 717607 warnings, 118 errors in 2637.75s (0:43:57) =
```

### Reproduction Steps

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
- `python3 -sBm build -w --no-isolation`
- because I'm calling `build` with `--no-isolation` I'm using during all processes only locally installed modules
- install .whl file in using 'installer` module
- run pytest with $PYTHONPATH pointing to sitearch and sitelib inside
- build is performed in env which is *`cut off from access to the public network`* (pytest is executed with `-m "not network"`)

### Possible Solution

Instead hardcode python executable name it should be used `sys.executable`.

### Additional Information/Context

In summary there are some pytest warnings as well.
Here is fill pytest output as attachment [python-awscli.FAIL.txt](https://github.com/aws/aws-cli/files/11652472/python-awscli.FAIL.txt)

### CLI version used

1.27.146

### Environment details (OS name and version, etc.)

Linux x86/64

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.