From bdc07041d9f7e84f3be504c6f9084a98865b1aa1 Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Mon, 27 Sep 2021 11:17:48 -0700 Subject: [PATCH] Fix live tests (#20886) * Fix tests * Update sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py --- .../azure-monitor-query/azure/monitor/query/_models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py index a16a258f40d2..e391eaf4e45e 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py @@ -57,7 +57,7 @@ def _from_generated(cls, generated): ) -class LogsTableRow(list): +class LogsTableRow(object): """Represents a single row in logs table. This type is gettable by both column name and column index. @@ -66,7 +66,6 @@ class LogsTableRow(list): def __init__(self, **kwargs): # type: (Any) -> None - super(LogsTableRow, self).__init__(**kwargs) _col_types = kwargs["col_types"] row = kwargs["row"] self._row = process_row(_col_types, row) @@ -145,8 +144,7 @@ def _from_generated(cls, generated): class MetricsList(list): """Custom list for metrics """ - def __init__(self, **kwargs): - super(MetricsList, self).__init__(**kwargs) + def __init__(self, **kwargs): # pylint: disable=super-init-not-called self._metrics = kwargs['metrics'] self._metric_names = {val.name: ind for ind, val in enumerate(self._metrics)}