Changeset 1a85a3d in mod_gnutls
- Timestamp:
- Apr 7, 2020, 2:27:05 PM (3 years ago)
- Branches:
- asyncio, main, master, proxy-ticket
- Children:
- b0695c6
- Parents:
- e60e3b9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/tests.py
re60e3b9 r1a85a3d 140 140 self.transport = Transports[transport.upper()] 141 141 self.description = description 142 if host: 143 self.host = subst_env(host) 144 else: 145 self.host = os.environ.get('TEST_TARGET', 'localhost') 146 if port: 147 self.port = int(subst_env(port)) 148 else: 149 self.port = int(os.environ.get('TEST_PORT', 8000)) 142 self.host = host 143 self.port = port 150 144 151 145 def __repr__(self): … … 158 152 def run(self, timeout=5.0, conn_log=None, response_log=None): 159 153 """Set up an HTTP connection and run the configured actions.""" 154 155 if self.host: 156 self.host = subst_env(self.host) 157 else: 158 self.host = os.environ.get('TEST_TARGET', 'localhost') 159 if self.port: 160 self.port = int(subst_env(self.port)) 161 else: 162 self.port = int(os.environ.get('TEST_PORT', 8000)) 160 163 161 164 # note: "--logfile" option requires GnuTLS version >= 3.6.7
Note: See TracChangeset
for help on using the changeset viewer.