fix potential stall in test_gssapi.py

This commit is contained in:
Mike McLean 2025-03-30 08:55:41 -04:00 committed by Tomas Kopecek
parent 28a2da913b
commit 785ef7df38

View file

@ -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()