Merge "Quiet test output when running test_utils.py in isolation"

This commit is contained in:
Zuul 2017-10-17 23:58:14 +00:00 committed by Gerrit Code Review
commit b10f83b506

View File

@ -70,7 +70,8 @@ from swift.common.container_sync_realms import ContainerSyncRealms
from swift.common.header_key_dict import HeaderKeyDict
from swift.common.storage_policy import POLICIES, reload_storage_policies
from swift.common.swob import Request, Response
from test.unit import FakeLogger, requires_o_tmpfile_support
from test.unit import FakeLogger, requires_o_tmpfile_support, \
quiet_eventlet_exceptions
threading = eventlet.patcher.original('threading')
@ -6305,6 +6306,7 @@ class TestPipeMutex(unittest.TestCase):
def test_wrong_releaser(self):
self.mutex.acquire()
with quiet_eventlet_exceptions():
self.assertRaises(RuntimeError,
eventlet.spawn(self.mutex.release).wait)