Changeset b57d2c2 in mod_gnutls


Ignore:
Timestamp:
Dec 12, 2019, 6:44:55 AM (12 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
c96a965
Parents:
a592762
Message:

Connection reset can trigger BrokenPipeError? first, catch if expected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mgstest/tests.py

    ra592762 rb57d2c2  
    142142            conn.request(self.method, self.path, headers=self.headers)
    143143            resp = conn.getresponse()
    144         except ConnectionResetError as err:
     144        except (BrokenPipeError, ConnectionResetError) as err:
    145145            if self.expects_conn_reset():
    146146                print('connection reset as expected.')
Note: See TracChangeset for help on using the changeset viewer.