Skip to content

Commit cc4bfa3

Browse files
authored
Prep 3.0.2 Release (#781)
* Prep 3.0.2 Release - Bump version - Update Changelog - Remove spurious test - Updated code handles this case without raising; deleting attribute is artificial.
1 parent c8832df commit cc4bfa3

File tree

3 files changed

+7
-23
lines changed

3 files changed

+7
-23
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
## Pending
44

5+
## [3.0.2] 2023-11-06
56
### Fixed
67
- Core Agent fails to download on newer Mac OS/Apple Silicon (Issue #779)
78

8-
## [3.0.0rc1] 2023-09-08
9+
## [3.0.1] 2023-10-06
10+
### Added
11+
- Build wheels for Python 3.12
12+
13+
## [3.0.0] 2023-09-14
914

1015
Version 3.0.0 drops support for Python 2.7 and < 3.8, as well as Django < 3.2.
1116
If you need to continue using Python < 3.8 or Django < 3.2, please continue using v2.26.1.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
setup(
3535
name="scout_apm",
36-
version="3.0.1",
36+
version="3.0.2",
3737
description="Scout Application Performance Monitoring Agent",
3838
long_description=long_description,
3939
long_description_content_type="text/markdown",

tests/integration/instruments/test_urllib3.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
import httpretty
66
import pytest
7-
import urllib3
87

98
from scout_apm.compat import urllib3_cert_pool_manager
109
from scout_apm.instruments.urllib3 import ensure_installed
1110
from tests.compat import mock
12-
from tests.tools import delete_attributes
1311

1412
mock_not_attempted = mock.patch(
1513
"scout_apm.instruments.urllib3.have_patched_pool_urlopen", new=False
@@ -103,25 +101,6 @@ def test_request_type_error(tracked_request):
103101
assert span.tags["url"] == "https://example.com:443/"
104102

105103

106-
def test_request_no_absolute_url(caplog, tracked_request):
107-
ensure_installed()
108-
delete_absolute_url = delete_attributes(urllib3.HTTPConnectionPool, "_absolute_url")
109-
with httpretty.enabled(allow_net_connect=False), delete_absolute_url:
110-
httpretty.register_uri(
111-
httpretty.GET, "https://example.com/", body="Hello World!"
112-
)
113-
114-
http = urllib3_cert_pool_manager()
115-
response = http.request("GET", "https://example.com")
116-
117-
assert response.status == 200
118-
assert response.data == b"Hello World!"
119-
assert len(tracked_request.complete_spans) == 1
120-
span = tracked_request.complete_spans[0]
121-
assert span.operation == "HTTP/GET"
122-
assert span.tags["url"] == "Unknown"
123-
124-
125104
def test_request_ignore_errors_host(tracked_request):
126105
ensure_installed()
127106
with httpretty.enabled(allow_net_connect=False):

0 commit comments

Comments
 (0)