Bug 2277981 - python-azure-core fails to build with pytest 8: KeyError: 'FLASK_PORT'
Summary: python-azure-core fails to build with pytest 8: KeyError: 'FLASK_PORT'
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-azure-core
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeremy Cline
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-30 13:22 UTC by Tomáš Hrnčiar
Modified: 2024-05-29 20:54 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-29 20:54:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2024-04-30 13:22:31 UTC
python-azure-core fails to build with pytest 8.

==================================== ERRORS ====================================
_______ ERROR at setup of test_sync_transport_short_read_download_stream _______

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_ ERROR at setup of TestExceptions.test_httpresponse_error_with_response[PipelineTransportMockResponse] _

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_ ERROR at setup of TestExceptions.test_httpresponse_error_with_response[RestMockResponse] _

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__ ERROR at setup of TestExceptions.test_non_odatav4_error_body[HttpRequest0] __

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__ ERROR at setup of TestExceptions.test_non_odatav4_error_body[HttpRequest1] __

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______ ERROR at setup of TestExceptions.test_malformed_json[HttpRequest0] ______

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______ ERROR at setup of TestExceptions.test_malformed_json[HttpRequest1] ______

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________ ERROR at setup of TestExceptions.test_text[HttpRequest0] ___________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________ ERROR at setup of TestExceptions.test_text[HttpRequest1] ___________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______ ERROR at setup of TestExceptions.test_datav4_error[HttpRequest0] _______

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______ ERROR at setup of TestExceptions.test_datav4_error[HttpRequest1] _______

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________ ERROR at setup of test_basic_requests[HttpRequest0] ______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________ ERROR at setup of test_basic_requests[HttpRequest1] ______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________ ERROR at setup of test_basic_options_requests[HttpRequest0] __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________ ERROR at setup of test_basic_options_requests[HttpRequest1] __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____ ERROR at setup of test_basic_requests_separate_session[HttpRequest0] _____

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____ ERROR at setup of test_basic_requests_separate_session[HttpRequest1] _____

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______________ ERROR at setup of test_request_text[HttpRequest0] _______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______________ ERROR at setup of test_request_text[HttpRequest1] _______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________ ERROR at setup of test_requests_auto_headers[HttpRequest0] __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________ ERROR at setup of test_requests_auto_headers[HttpRequest1] __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______________________ ERROR at setup of test_normal_call ______________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______________________ ERROR at setup of test_stream_call ______________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________________ ERROR at setup of test_headers_response ____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________________ ERROR at setup of test_headers_response_keys _________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________ ERROR at setup of test_headers_response_keys_mutability ____________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________________ ERROR at setup of test_headers_response_values ________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________ ERROR at setup of test_headers_response_values_mutability ___________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________________ ERROR at setup of test_headers_response_items _________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________ ERROR at setup of test_headers_response_items_mutability ___________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________________ ERROR at setup of test_header_mutations ____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________________ ERROR at setup of test_copy_headers_method __________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
____________ ERROR at setup of test_headers_insert_retains_ordering ____________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________ ERROR at setup of test_headers_insert_appends_if_new _____________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________ ERROR at setup of test_headers_insert_removes_all_existing __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________ ERROR at setup of test_headers_delete_removes_all_existing __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________ ERROR at setup of test_headers_case_insensitive ________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______ ERROR at setup of test_multiple_headers_duplicate_case_insensitive ______

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________________ ERROR at setup of test_multiple_headers_commas ________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________________________ ERROR at setup of test_update _________________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________________ ERROR at setup of test_complicated_json ____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________ ERROR at setup of test_request_policies_raw_request_hook ___________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________________ ERROR at setup of test_request_policies_chain _________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
____________ ERROR at setup of test_per_call_policies_old_then_new _____________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________________ ERROR at setup of test_response ________________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________________ ERROR at setup of test_response_content ____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________________ ERROR at setup of test_response_text _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________________ ERROR at setup of test_response_html _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________________ ERROR at setup of test_raise_for_status ____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________________ ERROR at setup of test_response_repr _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
____________ ERROR at setup of test_response_content_type_encoding _____________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________ ERROR at setup of test_response_autodetect_encoding ______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
____________ ERROR at setup of test_response_fallback_to_autodetect ____________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________ ERROR at setup of test_response_no_charset_with_ascii_content _________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______ ERROR at setup of test_response_no_charset_with_iso_8859_1_content ______

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________________________ ERROR at setup of test_json __________________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________ ERROR at setup of test_json_with_specified_encoding ______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________________________ ERROR at setup of test_emoji _________________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________ ERROR at setup of test_emoji_family_with_skin_tone_modifier __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______________________ ERROR at setup of test_korean_nfc _______________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________________ ERROR at setup of test_urlencoded_content ___________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________________ ERROR at setup of test_multipart_files_content ________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________ ERROR at setup of test_multipart_data_and_files_content ____________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________ ERROR at setup of test_multipart_encode_non_seekable_filelike _________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________________ ERROR at setup of test_get_xml_basic _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________________ ERROR at setup of test_put_xml_basic _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________ ERROR at setup of test_send_request_return_pipeline_response _________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________ ERROR at setup of test_passing_encoding_to_text ________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________________ ERROR at setup of test_readonly ________________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___ ERROR at setup of test_post_with_location_and_operation_location_headers ___

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_ ERROR at setup of test_post_with_location_and_operation_location_headers_no_body _

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________________ ERROR at setup of test_post_resource_location _________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
____________________ ERROR at setup of test_put_no_polling _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________________ ERROR at setup of test_put_location ______________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________ ERROR at setup of test_put_initial_response_body_invalid ___________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________ ERROR at setup of test_put_operation_location_polling_fail __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________ ERROR at setup of test_put_location_polling_fail _______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
____________________ ERROR at setup of test_patch_location _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________ ERROR at setup of test_patch_operation_location_polling_fail _________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______________ ERROR at setup of test_patch_location_polling_fail ______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________ ERROR at setup of test_delete_operation_location _______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______________________ ERROR at setup of test_request_id _______________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________________ ERROR at setup of test_continuation_token ___________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________________ ERROR at setup of test_response_attr_parity __________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________________ ERROR at setup of test_response_set_attrs ___________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________________ ERROR at setup of test_response_block_size __________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________________ ERROR at setup of test_response_body _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______________ ERROR at setup of test_response_internal_response _______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________ ERROR at setup of test_response_stream_download ________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________________ ERROR at setup of test_response_request ____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________________ ERROR at setup of test_response_status_code __________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
____________________ ERROR at setup of test_response_reason ____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________________ ERROR at setup of test_response_content_type _________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
____________________ ERROR at setup of test_response_parts _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________________ ERROR at setup of test_iter_raw ________________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________________ ERROR at setup of test_iter_raw_on_iterable __________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
____________________ ERROR at setup of test_iter_with_error ____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
______________________ ERROR at setup of test_iter_bytes _______________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________________ ERROR at setup of test_sync_streaming_response ________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________ ERROR at setup of test_cannot_read_after_stream_consumed ___________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___________ ERROR at setup of test_cannot_read_after_response_closed ___________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________ ERROR at setup of test_decompress_compressed_header ______________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________________ ERROR at setup of test_iter_read _______________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________ ERROR at setup of test_iter_read_back_and_forth ________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________ ERROR at setup of test_stream_with_return_pipeline_response __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_____________________ ERROR at setup of test_error_reading _____________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_______________ ERROR at setup of test_pass_kwarg_to_iter_bytes ________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
________________ ERROR at setup of test_pass_kwarg_to_iter_raw _________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
_________ ERROR at setup of test_deflate_decompress_compressed_header __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________ ERROR at setup of test_decompress_compressed_header_stream __________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
___ ERROR at setup of test_decompress_compressed_header_stream_body_content ____

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________________ ERROR at setup of test_smoke[HttpRequest0] __________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
__________________ ERROR at setup of test_smoke[HttpRequest1] __________________

    @pytest.fixture
    def port():
>       return os.environ["FLASK_PORT"]
E       KeyError: 'FLASK_PORT'

tests/conftest.py:67: KeyError
=============================== warnings summary ===============================
tests/rest_client.py:53
  /builddir/build/BUILD/python-azure-core-1.28.0/tests/rest_client.py:53: PytestCollectionWarning: cannot collect test class 'TestRestClient' because it has a __init__ constructor (from: tests/test_base_polling.py)
    class TestRestClient(object):

tests/rest_client.py:53
  /builddir/build/BUILD/python-azure-core-1.28.0/tests/rest_client.py:53: PytestCollectionWarning: cannot collect test class 'TestRestClient' because it has a __init__ constructor (from: tests/test_rest_http_request.py)
    class TestRestClient(object):

tests/rest_client.py:53
  /builddir/build/BUILD/python-azure-core-1.28.0/tests/rest_client.py:53: PytestCollectionWarning: cannot collect test class 'TestRestClient' because it has a __init__ constructor (from: tests/test_rest_response_backcompat.py)
    class TestRestClient(object):

tests/test_exceptions.py::TestExceptions::test_deserialized_httpresponse_error_code[PipelineTransportMockResponse]
tests/test_exceptions.py::TestExceptions::test_deserialized_httpresponse_error_code[PipelineTransportMockResponse]
tests/test_exceptions.py::TestExceptions::test_deserialized_httpresponse_error_code[RestMockResponse]
tests/test_exceptions.py::TestExceptions::test_deserialized_httpresponse_error_code[RestMockResponse]
  /builddir/build/BUILDROOT/python-azure-core-1.28.0-6.fc41.x86_64/usr/lib/python3.12/site-packages/azure/core/exceptions.py:189: DeprecationWarning: error.error from azure exceptions is deprecated, just simply use 'error' once
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test_content_length_checking.py::test_sync_transport_short_read_download_stream
ERROR tests/test_exceptions.py::TestExceptions::test_httpresponse_error_with_response[PipelineTransportMockResponse]
ERROR tests/test_exceptions.py::TestExceptions::test_httpresponse_error_with_response[RestMockResponse]
ERROR tests/test_exceptions.py::TestExceptions::test_non_odatav4_error_body[HttpRequest0]
ERROR tests/test_exceptions.py::TestExceptions::test_non_odatav4_error_body[HttpRequest1]
ERROR tests/test_exceptions.py::TestExceptions::test_malformed_json[HttpRequest0]
ERROR tests/test_exceptions.py::TestExceptions::test_malformed_json[HttpRequest1]
ERROR tests/test_exceptions.py::TestExceptions::test_text[HttpRequest0] - Key...
ERROR tests/test_exceptions.py::TestExceptions::test_text[HttpRequest1] - Key...
ERROR tests/test_exceptions.py::TestExceptions::test_datav4_error[HttpRequest0]
ERROR tests/test_exceptions.py::TestExceptions::test_datav4_error[HttpRequest1]
ERROR tests/test_pipeline.py::test_basic_requests[HttpRequest0] - KeyError: '...
ERROR tests/test_pipeline.py::test_basic_requests[HttpRequest1] - KeyError: '...
ERROR tests/test_pipeline.py::test_basic_options_requests[HttpRequest0] - Key...
ERROR tests/test_pipeline.py::test_basic_options_requests[HttpRequest1] - Key...
ERROR tests/test_pipeline.py::test_basic_requests_separate_session[HttpRequest0]
ERROR tests/test_pipeline.py::test_basic_requests_separate_session[HttpRequest1]
ERROR tests/test_pipeline.py::test_request_text[HttpRequest0] - KeyError: 'FL...
ERROR tests/test_pipeline.py::test_request_text[HttpRequest1] - KeyError: 'FL...
ERROR tests/test_requests_universal.py::test_requests_auto_headers[HttpRequest0]
ERROR tests/test_requests_universal.py::test_requests_auto_headers[HttpRequest1]
ERROR tests/test_rest_context_manager.py::test_normal_call - KeyError: 'FLASK...
ERROR tests/test_rest_context_manager.py::test_stream_call - KeyError: 'FLASK...
ERROR tests/test_rest_headers.py::test_headers_response - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_headers.py::test_headers_response_keys - KeyError: 'FLA...
ERROR tests/test_rest_headers.py::test_headers_response_keys_mutability - Key...
ERROR tests/test_rest_headers.py::test_headers_response_values - KeyError: 'F...
ERROR tests/test_rest_headers.py::test_headers_response_values_mutability - K...
ERROR tests/test_rest_headers.py::test_headers_response_items - KeyError: 'FL...
ERROR tests/test_rest_headers.py::test_headers_response_items_mutability - Ke...
ERROR tests/test_rest_headers.py::test_header_mutations - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_headers.py::test_copy_headers_method - KeyError: 'FLASK...
ERROR tests/test_rest_headers.py::test_headers_insert_retains_ordering - KeyE...
ERROR tests/test_rest_headers.py::test_headers_insert_appends_if_new - KeyErr...
ERROR tests/test_rest_headers.py::test_headers_insert_removes_all_existing - ...
ERROR tests/test_rest_headers.py::test_headers_delete_removes_all_existing - ...
ERROR tests/test_rest_headers.py::test_headers_case_insensitive - KeyError: '...
ERROR tests/test_rest_headers.py::test_multiple_headers_duplicate_case_insensitive
ERROR tests/test_rest_headers.py::test_multiple_headers_commas - KeyError: 'F...
ERROR tests/test_rest_headers.py::test_update - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_http_request.py::test_complicated_json - KeyError: 'FLA...
ERROR tests/test_rest_http_request.py::test_request_policies_raw_request_hook
ERROR tests/test_rest_http_request.py::test_request_policies_chain - KeyError...
ERROR tests/test_rest_http_request.py::test_per_call_policies_old_then_new - ...
ERROR tests/test_rest_http_response.py::test_response - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_http_response.py::test_response_content - KeyError: 'FL...
ERROR tests/test_rest_http_response.py::test_response_text - KeyError: 'FLASK...
ERROR tests/test_rest_http_response.py::test_response_html - KeyError: 'FLASK...
ERROR tests/test_rest_http_response.py::test_raise_for_status - KeyError: 'FL...
ERROR tests/test_rest_http_response.py::test_response_repr - KeyError: 'FLASK...
ERROR tests/test_rest_http_response.py::test_response_content_type_encoding
ERROR tests/test_rest_http_response.py::test_response_autodetect_encoding - K...
ERROR tests/test_rest_http_response.py::test_response_fallback_to_autodetect
ERROR tests/test_rest_http_response.py::test_response_no_charset_with_ascii_content
ERROR tests/test_rest_http_response.py::test_response_no_charset_with_iso_8859_1_content
ERROR tests/test_rest_http_response.py::test_json - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_http_response.py::test_json_with_specified_encoding - K...
ERROR tests/test_rest_http_response.py::test_emoji - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_http_response.py::test_emoji_family_with_skin_tone_modifier
ERROR tests/test_rest_http_response.py::test_korean_nfc - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_http_response.py::test_urlencoded_content - KeyError: '...
ERROR tests/test_rest_http_response.py::test_multipart_files_content - KeyErr...
ERROR tests/test_rest_http_response.py::test_multipart_data_and_files_content
ERROR tests/test_rest_http_response.py::test_multipart_encode_non_seekable_filelike
ERROR tests/test_rest_http_response.py::test_get_xml_basic - KeyError: 'FLASK...
ERROR tests/test_rest_http_response.py::test_put_xml_basic - KeyError: 'FLASK...
ERROR tests/test_rest_http_response.py::test_send_request_return_pipeline_response
ERROR tests/test_rest_http_response.py::test_passing_encoding_to_text - KeyEr...
ERROR tests/test_rest_http_response.py::test_readonly - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_polling.py::test_post_with_location_and_operation_location_headers
ERROR tests/test_rest_polling.py::test_post_with_location_and_operation_location_headers_no_body
ERROR tests/test_rest_polling.py::test_post_resource_location - KeyError: 'FL...
ERROR tests/test_rest_polling.py::test_put_no_polling - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_polling.py::test_put_location - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_polling.py::test_put_initial_response_body_invalid - Ke...
ERROR tests/test_rest_polling.py::test_put_operation_location_polling_fail - ...
ERROR tests/test_rest_polling.py::test_put_location_polling_fail - KeyError: ...
ERROR tests/test_rest_polling.py::test_patch_location - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_polling.py::test_patch_operation_location_polling_fail
ERROR tests/test_rest_polling.py::test_patch_location_polling_fail - KeyError...
ERROR tests/test_rest_polling.py::test_delete_operation_location - KeyError: ...
ERROR tests/test_rest_polling.py::test_request_id - KeyError: 'FLASK_PORT'
ERROR tests/test_rest_polling.py::test_continuation_token - KeyError: 'FLASK_...
ERROR tests/test_rest_response_backcompat.py::test_response_attr_parity - Key...
ERROR tests/test_rest_response_backcompat.py::test_response_set_attrs - KeyEr...
ERROR tests/test_rest_response_backcompat.py::test_response_block_size - KeyE...
ERROR tests/test_rest_response_backcompat.py::test_response_body - KeyError: ...
ERROR tests/test_rest_response_backcompat.py::test_response_internal_response
ERROR tests/test_rest_response_backcompat.py::test_response_stream_download
ERROR tests/test_rest_response_backcompat.py::test_response_request - KeyErro...
ERROR tests/test_rest_response_backcompat.py::test_response_status_code - Key...
ERROR tests/test_rest_response_backcompat.py::test_response_reason - KeyError...
ERROR tests/test_rest_response_backcompat.py::test_response_content_type - Ke...
ERROR tests/test_rest_response_backcompat.py::test_response_parts - KeyError:...
ERROR tests/test_rest_stream_responses.py::test_iter_raw - KeyError: 'FLASK_P...
ERROR tests/test_rest_stream_responses.py::test_iter_raw_on_iterable - KeyErr...
ERROR tests/test_rest_stream_responses.py::test_iter_with_error - KeyError: '...
ERROR tests/test_rest_stream_responses.py::test_iter_bytes - KeyError: 'FLASK...
ERROR tests/test_rest_stream_responses.py::test_sync_streaming_response - Key...
ERROR tests/test_rest_stream_responses.py::test_cannot_read_after_stream_consumed
ERROR tests/test_rest_stream_responses.py::test_cannot_read_after_response_closed
ERROR tests/test_rest_stream_responses.py::test_decompress_compressed_header
ERROR tests/test_rest_stream_responses.py::test_iter_read - KeyError: 'FLASK_...
ERROR tests/test_rest_stream_responses.py::test_iter_read_back_and_forth - Ke...
ERROR tests/test_rest_stream_responses.py::test_stream_with_return_pipeline_response
ERROR tests/test_rest_stream_responses.py::test_error_reading - KeyError: 'FL...
ERROR tests/test_rest_stream_responses.py::test_pass_kwarg_to_iter_bytes - Ke...
ERROR tests/test_rest_stream_responses.py::test_pass_kwarg_to_iter_raw - KeyE...
ERROR tests/test_rest_stream_responses.py::test_deflate_decompress_compressed_header
ERROR tests/test_rest_stream_responses.py::test_decompress_compressed_header_stream
ERROR tests/test_rest_stream_responses.py::test_decompress_compressed_header_stream_body_content
ERROR tests/test_testserver.py::test_smoke[HttpRequest0] - KeyError: 'FLASK_P...
ERROR tests/test_testserver.py::test_smoke[HttpRequest1] - KeyError: 'FLASK_P...
==== 864 passed, 2 skipped, 5 deselected, 7 warnings, 113 errors in 14.50s =====

https://docs.pytest.org/en/stable/changelog.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07388563-python-azure-core/

For all our attempts to build python-azure-core with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-azure-core/

Let us know here if you have any questions.

Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora Change
proposal https://fedoraproject.org/wiki/Changes/Pytest_8

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Tomáš Hrnčiar 2024-05-23 14:47:12 UTC
This can be resolved by upgrading azure-core to >=1.29.5 or by digging up a fix somewhere in these 322 commits. :) 
https://github.com/Azure/azure-sdk-for-python/compare/azure-core_1.29.4...azure-core_1.29.5

Comment 2 Jeremy Cline 2024-05-29 20:54:26 UTC
Sorry for the long delay here. I've bumped Rawhide to v1.30.1: https://koji.fedoraproject.org/koji/taskinfo?taskID=118254849


Note You need to log in before you can comment on or make changes to this bug.