@@ -206,7 +206,7 @@ def test_basic(self):
206
206
self .assertEqual (span .name , "GET" )
207
207
208
208
self .assertEqual (
209
- span .attributes ,
209
+ dict ( span .attributes ) ,
210
210
{
211
211
SpanAttributes .HTTP_METHOD : "GET" ,
212
212
SpanAttributes .HTTP_URL : self .URL ,
@@ -230,7 +230,7 @@ def test_nonstandard_http_method(self):
230
230
self .assertIs (span .kind , trace .SpanKind .CLIENT )
231
231
self .assertEqual (span .name , "HTTP" )
232
232
self .assertEqual (
233
- span .attributes ,
233
+ dict ( span .attributes ) ,
234
234
{
235
235
SpanAttributes .HTTP_METHOD : "_OTHER" ,
236
236
SpanAttributes .HTTP_URL : self .URL ,
@@ -254,7 +254,7 @@ def test_nonstandard_http_method_new_semconv(self):
254
254
self .assertIs (span .kind , trace .SpanKind .CLIENT )
255
255
self .assertEqual (span .name , "HTTP" )
256
256
self .assertEqual (
257
- span .attributes ,
257
+ dict ( span .attributes ) ,
258
258
{
259
259
HTTP_REQUEST_METHOD : "_OTHER" ,
260
260
URL_FULL : self .URL ,
@@ -294,7 +294,7 @@ def test_basic_new_semconv(self):
294
294
SpanAttributes .SCHEMA_URL ,
295
295
)
296
296
self .assertEqual (
297
- span .attributes ,
297
+ dict ( span .attributes ) ,
298
298
{
299
299
HTTP_REQUEST_METHOD : "GET" ,
300
300
URL_FULL : url ,
@@ -329,7 +329,7 @@ def test_basic_both_semconv(self):
329
329
)
330
330
331
331
self .assertEqual (
332
- span .attributes ,
332
+ dict ( span .attributes ) ,
333
333
{
334
334
SpanAttributes .HTTP_METHOD : "GET" ,
335
335
HTTP_REQUEST_METHOD : "GET" ,
@@ -456,7 +456,7 @@ def test_requests_500_error(self):
456
456
457
457
span = self .assert_span ()
458
458
self .assertEqual (
459
- span .attributes ,
459
+ dict ( span .attributes ) ,
460
460
{
461
461
SpanAttributes .HTTP_METHOD : "GET" ,
462
462
SpanAttributes .HTTP_URL : self .URL ,
@@ -512,7 +512,7 @@ def test_requests_timeout_exception_new_semconv(self):
512
512
513
513
span = self .assert_span ()
514
514
self .assertEqual (
515
- span .attributes ,
515
+ dict ( span .attributes ) ,
516
516
{
517
517
HTTP_REQUEST_METHOD : "GET" ,
518
518
URL_FULL : url ,
@@ -533,7 +533,7 @@ def test_requests_timeout_exception_both_semconv(self):
533
533
534
534
span = self .assert_span ()
535
535
self .assertEqual (
536
- span .attributes ,
536
+ dict ( span .attributes ) ,
537
537
{
538
538
SpanAttributes .HTTP_METHOD : "GET" ,
539
539
HTTP_REQUEST_METHOD : "GET" ,
@@ -634,7 +634,7 @@ def test_response_hook(self):
634
634
self .assertEqual (result .text , "Hello!" )
635
635
span = self .assert_span ()
636
636
self .assertEqual (
637
- span .attributes ,
637
+ dict ( span .attributes ) ,
638
638
{
639
639
SpanAttributes .HTTP_METHOD : "GET" ,
640
640
SpanAttributes .HTTP_URL : self .URL ,
@@ -811,7 +811,7 @@ def test_response_hook(self):
811
811
self .assertEqual (result .text , "Hello!" )
812
812
span = self .assert_span ()
813
813
self .assertEqual (
814
- span .attributes ,
814
+ dict ( span .attributes ) ,
815
815
{
816
816
SpanAttributes .HTTP_METHOD : "GET" ,
817
817
SpanAttributes .HTTP_URL : self .URL ,
@@ -832,7 +832,7 @@ def test_response_hook_sync_async_kwargs(self):
832
832
self .assertEqual (result .text , "Hello!" )
833
833
span = self .assert_span ()
834
834
self .assertEqual (
835
- span .attributes ,
835
+ dict ( span .attributes ) ,
836
836
{
837
837
SpanAttributes .HTTP_METHOD : "GET" ,
838
838
SpanAttributes .HTTP_URL : self .URL ,
0 commit comments