diff --git a/instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py b/instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py index d3927b9102..5c375ac4aa 100644 --- a/instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py +++ b/instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py @@ -126,7 +126,6 @@ def test_instrument_connection_with_dbapi_sqlcomment_enabled(self): ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -163,7 +162,6 @@ def test_instrument_connection_with_dbapi_sqlcomment_enabled_with_options( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -205,7 +203,6 @@ def test_instrument_connection_with_dbapi_sqlcomment_not_enabled_default( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -252,7 +249,6 @@ def test_instrument_with_dbapi_sqlcomment_enabled( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -290,7 +286,6 @@ def test_instrument_with_dbapi_sqlcomment_enabled_with_options( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -333,7 +328,6 @@ def test_instrument_with_dbapi_sqlcomment_not_enabled_default( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor