From b38e00c0a32c08546e5b229202a9f8e1801daf4f Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Mon, 14 Aug 2023 06:05:29 +0300 Subject: [PATCH] Handle pylint warnings in test_process, suppress fixme globally --- minode/tests/test_process.py | 4 ++-- tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/minode/tests/test_process.py b/minode/tests/test_process.py index eb65622..a576644 100644 --- a/minode/tests/test_process.py +++ b/minode/tests/test_process.py @@ -114,8 +114,8 @@ class TestProcess(TestProcessProto): for c in self.process.connections(): if c.status == 'LISTEN': if self._listen is False: - return self.fail( - 'Listening while started with --no-incoming') + self.fail('Listening while started with --no-incoming') + return self.assertEqual(c.laddr[1], self._listening_port or 8444) break else: diff --git a/tox.ini b/tox.ini index 2e0584c..ff89932 100644 --- a/tox.ini +++ b/tox.ini @@ -40,4 +40,4 @@ omit = ignore_errors = true [pylint.main] -disable = invalid-name,consider-using-f-string +disable = invalid-name,consider-using-f-string,fixme