Skip to content

Commit

Permalink
fix: flake8-bugbear error in test_appliance.py
Browse files Browse the repository at this point in the history
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

_test/lib/test_appliance.py:144:56: B026 Star-arg unpacking after a keyword argument is strongly discouraged, because it only works when the keyword parameter is declared after all parameters supplied by the unpacked sequence, and this change of ordering can surprise and mislead readers.
            traceback.print_exception(file=sys.stdout, *info)
                                                       ^
  • Loading branch information
dupuy authored Jan 30, 2024
1 parent c3a5f20 commit e0a58d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _test/lib/test_appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def display(results, verbose):
sys.stdout.write('=' * 75 + '\n')
sys.stdout.write('%s(%s): %s\n' % (name, ', '.join(filenames), kind))
if kind == 'ERROR':
traceback.print_exception(file=sys.stdout, *info)
traceback.print_exception(*info, file=sys.stdout)
else:
sys.stdout.write('Traceback (most recent call last):\n')
traceback.print_tb(info[2], file=sys.stdout)
Expand Down

0 comments on commit e0a58d4

Please sign in to comment.