Test `serial/tools/list_ports.py` to 100%

Testing revealed that using the `-n` option
would typically result in a `NameError` due to a typo.
(The issue was introduced in commit 0e1ab9e9.)
This is fixed by referencing `args.n`.

In addition, unreachable code is now comment-ignored
for coverage purposes.
2 files changed