Skip to content

Commit 4574a49

Browse files
committed
skip none in test too
Signed-off-by: emdneto <[email protected]>
1 parent 67d736b commit 4574a49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -766,14 +766,14 @@ def assert_proxy_mounts(self, mounts, num_mounts, transport_type=None):
766766
self.assertEqual(len(mounts), num_mounts)
767767
for transport in mounts:
768768
with self.subTest(transport):
769+
if transport is None:
770+
continue
769771
if transport_type:
770772
self.assertIsInstance(
771773
transport,
772774
transport_type,
773775
)
774776
else:
775-
if transport is None:
776-
continue
777777
handler = self.get_transport_handler(transport)
778778
self.assertTrue(
779779
isinstance(handler, ObjectProxy)
@@ -1017,7 +1017,7 @@ def test_instrument_client_with_no_proxy(self):
10171017
self.assert_proxy_mounts(
10181018
client._mounts.values(),
10191019
3,
1020-
(httpx.HTTPTransport, httpx.AsyncHTTPTransport, type(None)),
1020+
(httpx.HTTPTransport, httpx.AsyncHTTPTransport),
10211021
)
10221022
HTTPXClientInstrumentor.instrument_client(client)
10231023
result = self.perform_request(self.URL, client=client)

0 commit comments

Comments
 (0)