Changeset 1fe7cac in mod_gnutls for test/mgstest
- Timestamp:
- Jan 5, 2020, 5:43:41 AM (14 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 459a982
- Parents:
- 0b3733d
- git-author:
- Fiona Klute <fiona.klute@…> (01/05/20 05:41:39)
- git-committer:
- Fiona Klute <fiona.klute@…> (01/05/20 05:43:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/tests.py
r0b3733d r1fe7cac 43 43 # HTTPS). 44 44 transport: 'gnutls' 45 description ='This connection description will be logged.'45 description: 'This connection description will be logged.' 46 46 actions: 47 47 - !request … … 364 364 print(errs.decode(), file=conn_log) 365 365 366 if proc.returncode != 0: 367 if len(outs) != 0: 368 raise TestExpectationFailed( 369 f'Connection failed, but got output: {outs!r}') 370 if self.expects_conn_reset(): 371 print('connection reset as expected.') 372 return 373 else: 374 raise TestExpectationFailed( 375 'Connection failed unexpectedly!') 376 else: 377 if self.expects_conn_reset(): 378 raise TestExpectationFailed( 379 'Expected connection reset did not occur!') 380 366 381 # first line of the received data must be the status 367 382 status, rest = outs.decode().split('\r\n', maxsplit=1)
Note: See TracChangeset
for help on using the changeset viewer.