From b96935c2cc74d7c0240ac7c0873def73f303e2c6 Mon Sep 17 00:00:00 2001 From: Jana Cupova Date: Feb 24 2021 16:08:19 +0000 Subject: Fix progname --- diff --git a/tests/test_cli/test_list_history.py b/tests/test_cli/test_list_history.py index 8abfb12..487f55f 100644 --- a/tests/test_cli/test_list_history.py +++ b/tests/test_cli/test_list_history.py @@ -205,11 +205,11 @@ class TestListHistory(utils.CliTestCase): @mock.patch('sys.stderr', new_callable=StringIO) def test_list_history_without_option(self, stderr): - expected = "Usage: python -m nose list-history [options]\n" \ + expected = "Usage: %s list-history [options]\n" \ "(Specify the --help global option for a list of other " \ "help options)\n\n" \ - "python -m nose: error: Please specify an option to limit " \ - "the query\n" + "%s: error: Please specify an option to limit " \ + "the query\n" %(self.progname, self.progname) self.session.getChannel.return_value = None with self.assertRaises(SystemExit) as ex: anon_handle_list_history(self.options, self.session, [])