We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72d9d96 commit 03b6c8fCopy full SHA for 03b6c8f
1 file changed
tests/test_varys.py
@@ -298,9 +298,10 @@ def tearDown(self):
298
connection.close()
299
time.sleep(0.5)
300
301
- # check that all file handles were dropped
302
- logger = logging.getLogger("test_varys")
303
- self.assertEqual(len(logger.handlers), 0)
+ # check that all file handles were dropped for relevant loggers
+ for logger_name in ["test-exchange", "test-exchange-2", "test-exchange-3"]:
+ logger = logging.getLogger(logger_name)
304
+ self.assertEqual(len(logger.handlers), 0)
305
306
def test_not_permitted_declare_fail(self):
307
self.v.send(TEXT, "test-exchange-2", queue_suffix="test_queue")
0 commit comments