mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Merge pull request #265 from ericsnowcurrently/fix-mac-tests
Fix the high-level tests on Mac.
This commit is contained in:
commit
a99ce72b9b
1 changed files with 5 additions and 1 deletions
|
|
@ -87,7 +87,11 @@ class Connection(namedtuple('Connection', 'client server')):
|
|||
|
||||
def shutdown(self, *args, **kwargs):
|
||||
if self.server is not None:
|
||||
self.server.shutdown(*args, **kwargs)
|
||||
try:
|
||||
self.server.shutdown(*args, **kwargs)
|
||||
except OSError as exc:
|
||||
if exc.errno not in (errno.ENOTCONN, errno.EBADF):
|
||||
raise
|
||||
try:
|
||||
self.client.shutdown(*args, **kwargs)
|
||||
except OSError as exc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue