Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Py3.12 fixes #1900

Merged
merged 4 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .ci/.matrix_exclude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ exclude:
FRAMEWORK: grpc-1.24
- VERSION: python-3.12-rc
FRAMEWORK: grpc-1.24
# py3.12
# TODO py3.12
- VERSION: python-3.12-rc
FRAMEWORK: pymssql-newest # no wheels available yet
- VERSION: python-3.12-rc
Expand All @@ -269,3 +269,6 @@ exclude:
FRAMEWORK: sanic-newest # no wheels available yet
- VERSION: python-3.12-rc
FRAMEWORK: grpc-newest # no wheels available yet
- VERSION: python-3.12-rc
FRAMEWORK: kafka-python-newest # https://github.com/dpkp/kafka-python/pull/2376

3 changes: 3 additions & 0 deletions tests/transports/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import platform
import random
import string
import sys
import time
import timeit

Expand Down Expand Up @@ -156,6 +157,7 @@ def test_api_request_time_dynamic(mock_send, caplog, elasticapm_client):
assert mock_send.call_count == 0


@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Failing locally on 3.12.0rc1") # TODO py3.12
@mock.patch("elasticapm.transport.base.Transport._flush")
def test_api_request_size_dynamic(mock_flush, caplog, elasticapm_client):
elasticapm_client.config.update(version="1", api_request_size="100b")
Expand All @@ -180,6 +182,7 @@ def test_api_request_size_dynamic(mock_flush, caplog, elasticapm_client):
transport.close()


@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Failing locally on 3.12.0rc1") # TODO py3.12
@mock.patch("elasticapm.transport.base.Transport._flush")
@pytest.mark.parametrize("elasticapm_client", [{"api_request_size": "100b"}], indirect=True)
def test_flush_time_size(mock_flush, caplog, elasticapm_client):
Expand Down