scylladb / python-driver

ScyllaDB Python Driver, originally DataStax Python Driver for Apache Cassandra
https://python-driver.docs.scylladb.com
Apache License 2.0
74 stars 42 forks source link

integration-tests: fix undefined `logger` variable #226

Closed fruch closed 1 year ago

fruch commented 1 year ago

e6abdf125123e0a8d6b5611efc2a6722faadc6b3 seem to have broke some of the test teardown while trying to cleanup log handlers

and failing like the following:

self = <tests.integration.standard.test_query.PreparedStatementArgTest testMethod=test_prepare_batch_statement>

    def tearDown(self):
>       logger.removeHandler(self.mock_handler)
E       NameError: name 'logger' is not defined

tests/integration/standard/test_query.py:513: NameError