diff --git a/opentelemetry-sdk/tests/metrics/test_measurement_consumer.py b/opentelemetry-sdk/tests/metrics/test_measurement_consumer.py index b1f3dc2a385..9d3b9691d61 100644 --- a/opentelemetry-sdk/tests/metrics/test_measurement_consumer.py +++ b/opentelemetry-sdk/tests/metrics/test_measurement_consumer.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from sys import version_info from time import sleep from unittest import TestCase from unittest.mock import MagicMock, Mock, patch @@ -175,14 +174,9 @@ def sleep_1(*args, **kwargs): consumer.collect(reader_mock) - if version_info < (3, 8): - callback_options_time_call = mock_callback_options.mock_calls[-1][ - 2 - ]["timeout_millis"] - else: - callback_options_time_call = mock_callback_options.mock_calls[ - -1 - ].kwargs["timeout_millis"] + callback_options_time_call = mock_callback_options.mock_calls[ + -1 + ].kwargs["timeout_millis"] self.assertLess( callback_options_time_call,