fix potential stall in test_gssapi.py
This commit is contained in:
parent
28a2da913b
commit
785ef7df38
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ class TestGSSAPI(unittest.TestCase):
|
|||
self.session = koji.ClientSession('https://koji.example.com/kojihub',
|
||||
{})
|
||||
self.session._callMethod = mock.MagicMock(name='_callMethod')
|
||||
self.session.logout = mock.MagicMock(name='logout')
|
||||
# logout bypasses _callMethod. mock needed for __del__ to work
|
||||
|
||||
def tearDown(self):
|
||||
mock.patch.stopall()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue