Changeset eb84747 in mod_gnutls for test/mgstest/tests.py


Ignore:
Timestamp:
Dec 7, 2019, 11:41:40 AM (12 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
3fbe087
Parents:
0e069b6
Message:

TestConnection?: Add optional "description" attribute for logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mgstest/tests.py

    r0e069b6 reb84747  
    5656
    5757    def __init__(self, actions, host=None, port=None, gnutls_params=[],
    58                  transport='gnutls'):
     58                 transport='gnutls', description=None):
    5959        self.gnutls_params = gnutls_params
    6060        self.actions = actions
    6161        self.transport = Transports[transport.upper()]
     62        self.description = description
    6263        if host:
    6364            self.host = subst_env(host)
     
    7374                f'(host={self.host!r}, port={self.port!r}, '
    7475                f'gnutls_params={self.gnutls_params!r}, '
    75                 f'actions={self.actions!r}, transport={self.transport!r})')
     76                f'actions={self.actions!r}, transport={self.transport!r}, '
     77                f'description={self.description!r})')
    7678
    7779    def run(self, timeout=5.0):
Note: See TracChangeset for help on using the changeset viewer.