File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ def _verify_destination_port(self):
127127 try :
128128 self .destination_port = int (self .destination_port )
129129 except ValueError :
130- msg = ( "Destination port '{0}' not a base 10 integer." .format (self .destination_port ) )
130+ msg = "Destination port '{0}' not a base 10 integer." .format (self .destination_port )
131131 self ._raise_value_error (msg )
132132
133133 def _verify_stdout_destination (self ):
Original file line number Diff line number Diff line change @@ -234,15 +234,19 @@ def test_main_when_given_destination_protocol_via_cli_passes_port_to_get_logger(
234234 assert actual == expected
235235
236236
237- def test_main_when_get_logger_raises_io_error_without_errno_61_print_error_about_file_path (patches , capsys ):
237+ def test_main_when_get_logger_raises_io_error_without_errno_61_print_error_about_file_path (
238+ patches , capsys
239+ ):
238240 patches .get_logger .side_effect = IOError
239241 with pytest .raises (SystemExit ):
240242 main .main ()
241243
242244 assert "file path" in capsys .readouterr ().out .lower ()
243245
244246
245- def test_main_when_get_logger_raises_io_error_with_errno_61_prints_error_about_hostname (patches , capsys ):
247+ def test_main_when_get_logger_raises_io_error_with_errno_61_prints_error_about_hostname (
248+ patches , capsys
249+ ):
246250 err = IOError ()
247251 err .errno = 61
248252 patches .get_logger .side_effect = err
You can’t perform that action at this time.
0 commit comments