Skip to content

Commit 6c2d950

Browse files
committed
Ignore unused imports
1 parent c389b2f commit 6c2d950

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/framework/build_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def run_check(msg, args, expected_stdout='', expected_stderr='', **kwargs):
340340
def test_print_msg_rich(self):
341341
"""Test print_msg"""
342342
try:
343-
import rich
343+
import rich # noqa # pylint:disable=unused-import
344344
except ImportError:
345345
self.skipTest("rich not available")
346346
update_build_option('output_style', 'rich')

test/framework/output.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ def test_colorize_rich(self):
146146
Test colorize function
147147
"""
148148
try:
149-
import rich
150-
print(rich)
149+
import rich # noqa # pylint:disable=unused-import
151150
except ImportError:
152151
self.skipTest("rich not available")
153152
update_build_option('output_style', 'rich')
@@ -178,7 +177,7 @@ def test_print_error_rich(self):
178177
Test print_error function
179178
"""
180179
try:
181-
import rich
180+
import rich # noqa # pylint:disable=unused-import
182181
except ImportError:
183182
self.skipTest("rich not available")
184183
update_build_option('output_style', 'rich')

0 commit comments

Comments
 (0)