commit/galaxy-central: kanwei: Escaping in tests should be more specific
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/d1f2d2e5246a/ changeset: d1f2d2e5246a user: kanwei date: 2011-06-17 22:45:25 summary: Escaping in tests should be more specific affected #: 1 file (6 bytes) --- a/test/base/twilltestcase.py Fri Jun 17 16:16:28 2011 -0400 +++ b/test/base/twilltestcase.py Fri Jun 17 16:45:25 2011 -0400 @@ -242,10 +242,10 @@ self.visit_page( "history" ) for subpatt in patt.split(): try: - tc.find( escape(subpatt) ) + tc.find( subpatt ) except: fname = self.write_temp_file( tc.browser.get_html() ) - errmsg = "no match to '%s'\npage content written to '%s'" % ( escape(subpatt), fname ) + errmsg = "no match to '%s'\npage content written to '%s'" % ( subpatt, fname ) raise AssertionError( errmsg ) self.home() def clear_history( self ): @@ -384,7 +384,7 @@ """Switches to a history in the current list of histories""" self.visit_url( "%s/history/list?operation=switch&id=%s" % ( self.url, id ) ) if name: - self.check_history_for_string( name ) + self.check_history_for_string( escape( name ) ) self.home() def view_stored_active_histories( self, strings_displayed=[] ): self.home() Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket