Changeset 422eade in mod_gnutls


Ignore:
Timestamp:
Jan 26, 2020, 1:42:14 PM (3 weeks ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
c05b8c5
Parents:
264ab17
Message:

Support optional timeout for TestService?.wait()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mgstest/services.py

    r264ab17 r422eade  
    8383            self.process.terminate()
    8484
    85     def wait(self):
     85    def wait(self, timeout=None):
    8686        """Wait for the process to actually stop after calling stop().
    8787
    88         WARNING: Calling this method without stop() first is likely to
    89         hang.
     88        WARNING: Calling this method without a timeout or calling
     89        stop() first will hang. An expired timeout will raise a
     90        subprocess.TimeoutExpired exception.
     91
    9092        """
    9193        if self.process:
    92             self.process.wait()
     94            self.process.wait(timeout=timeout)
    9395            self.process = None
    9496
Note: See TracChangeset for help on using the changeset viewer.