mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Unit test fixes
This commit is contained in:
parent
4c4d017ddb
commit
5c8550de75
1 changed files with 4 additions and 0 deletions
|
@ -63,12 +63,16 @@ class IPCMessagePubSubCase(salt.ext.tornado.testing.AsyncTestCase):
|
|||
super().tearDown()
|
||||
try:
|
||||
self.pub_channel.close()
|
||||
except RuntimeError as exc:
|
||||
pass
|
||||
except OSError as exc:
|
||||
if exc.errno != errno.EBADF:
|
||||
# If its not a bad file descriptor error, raise
|
||||
raise
|
||||
try:
|
||||
self.sub_channel.close()
|
||||
except RuntimeError as exc:
|
||||
pass
|
||||
except OSError as exc:
|
||||
if exc.errno != errno.EBADF:
|
||||
# If its not a bad file descriptor error, raise
|
||||
|
|
Loading…
Add table
Reference in a new issue