#2727 Fix progname
Merged a year ago by tkopecek. Opened a year ago by jcupova.
jcupova/koji issue2599  into  master

@@ -205,11 +205,11 @@ 

  

      @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, [])

Commit bf34b1f fixes this pull-request

Pull-Request has been merged by tkopecek

a year ago
Metadata