Skip to content

Commit 1b0565d

Browse files
committed
Please pylint
1 parent b5a08ae commit 1b0565d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

instrumentation/opentelemetry-instrumentation-logging/tests/test_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def test_otel_attribute_count_limit_includes_code_attributes(self):
546546

547547
def test_logging_handler_without_env_var_uses_default_limit(self):
548548
"""Test that without OTEL_ATTRIBUTE_COUNT_LIMIT, default limit (128) should apply."""
549-
processor, logger, handler = set_up_test_logging(logging.WARNING)
549+
processor, logger, _ = set_up_test_logging(logging.WARNING)
550550

551551
# Create a log record with many attributes (more than default limit of 128)
552552
extra_attrs = {f"attr_{i}": f"value_{i}" for i in range(150)}
@@ -574,6 +574,7 @@ def test_logging_handler_without_env_var_uses_default_limit(self):
574574
)
575575

576576

577+
# pylint: disable=invalid-name
577578
class SetupLoggingHandlerTestCase(unittest.TestCase):
578579
def test_basicConfig_works_with_otel_handler(self):
579580
logger_provider = LoggerProvider()

instrumentation/opentelemetry-instrumentation-logging/tests/test_logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def get_tracer( # pylint: disable=no-self-use
4242
)
4343

4444

45+
# pylint: disable=no-self-use,too-many-public-methods
4546
class TestLoggingInstrumentorProxyTracerProvider(TestBase):
4647
@pytest.fixture(autouse=True)
4748
def inject_fixtures(self, caplog):

0 commit comments

Comments
 (0)