@@ -206,7 +206,7 @@ def test_basic(self):
206206 self .assertEqual (span .name , "GET" )
207207
208208 self .assertEqual (
209- span .attributes ,
209+ dict ( span .attributes ) ,
210210 {
211211 SpanAttributes .HTTP_METHOD : "GET" ,
212212 SpanAttributes .HTTP_URL : self .URL ,
@@ -230,7 +230,7 @@ def test_nonstandard_http_method(self):
230230 self .assertIs (span .kind , trace .SpanKind .CLIENT )
231231 self .assertEqual (span .name , "HTTP" )
232232 self .assertEqual (
233- span .attributes ,
233+ dict ( span .attributes ) ,
234234 {
235235 SpanAttributes .HTTP_METHOD : "_OTHER" ,
236236 SpanAttributes .HTTP_URL : self .URL ,
@@ -254,7 +254,7 @@ def test_nonstandard_http_method_new_semconv(self):
254254 self .assertIs (span .kind , trace .SpanKind .CLIENT )
255255 self .assertEqual (span .name , "HTTP" )
256256 self .assertEqual (
257- span .attributes ,
257+ dict ( span .attributes ) ,
258258 {
259259 HTTP_REQUEST_METHOD : "_OTHER" ,
260260 URL_FULL : self .URL ,
@@ -294,7 +294,7 @@ def test_basic_new_semconv(self):
294294 SpanAttributes .SCHEMA_URL ,
295295 )
296296 self .assertEqual (
297- span .attributes ,
297+ dict ( span .attributes ) ,
298298 {
299299 HTTP_REQUEST_METHOD : "GET" ,
300300 URL_FULL : url ,
@@ -329,7 +329,7 @@ def test_basic_both_semconv(self):
329329 )
330330
331331 self .assertEqual (
332- span .attributes ,
332+ dict ( span .attributes ) ,
333333 {
334334 SpanAttributes .HTTP_METHOD : "GET" ,
335335 HTTP_REQUEST_METHOD : "GET" ,
@@ -456,7 +456,7 @@ def test_requests_500_error(self):
456456
457457 span = self .assert_span ()
458458 self .assertEqual (
459- span .attributes ,
459+ dict ( span .attributes ) ,
460460 {
461461 SpanAttributes .HTTP_METHOD : "GET" ,
462462 SpanAttributes .HTTP_URL : self .URL ,
@@ -512,7 +512,7 @@ def test_requests_timeout_exception_new_semconv(self):
512512
513513 span = self .assert_span ()
514514 self .assertEqual (
515- span .attributes ,
515+ dict ( span .attributes ) ,
516516 {
517517 HTTP_REQUEST_METHOD : "GET" ,
518518 URL_FULL : url ,
@@ -533,7 +533,7 @@ def test_requests_timeout_exception_both_semconv(self):
533533
534534 span = self .assert_span ()
535535 self .assertEqual (
536- span .attributes ,
536+ dict ( span .attributes ) ,
537537 {
538538 SpanAttributes .HTTP_METHOD : "GET" ,
539539 HTTP_REQUEST_METHOD : "GET" ,
@@ -634,7 +634,7 @@ def test_response_hook(self):
634634 self .assertEqual (result .text , "Hello!" )
635635 span = self .assert_span ()
636636 self .assertEqual (
637- span .attributes ,
637+ dict ( span .attributes ) ,
638638 {
639639 SpanAttributes .HTTP_METHOD : "GET" ,
640640 SpanAttributes .HTTP_URL : self .URL ,
@@ -811,7 +811,7 @@ def test_response_hook(self):
811811 self .assertEqual (result .text , "Hello!" )
812812 span = self .assert_span ()
813813 self .assertEqual (
814- span .attributes ,
814+ dict ( span .attributes ) ,
815815 {
816816 SpanAttributes .HTTP_METHOD : "GET" ,
817817 SpanAttributes .HTTP_URL : self .URL ,
@@ -832,7 +832,7 @@ def test_response_hook_sync_async_kwargs(self):
832832 self .assertEqual (result .text , "Hello!" )
833833 span = self .assert_span ()
834834 self .assertEqual (
835- span .attributes ,
835+ dict ( span .attributes ) ,
836836 {
837837 SpanAttributes .HTTP_METHOD : "GET" ,
838838 SpanAttributes .HTTP_URL : self .URL ,
0 commit comments