This test races with other tests because Exiter doesn't have a great way to
remove all installed handlers. This is a test-only issue, so we can drop this
test.
Signed-off-by: Zack Cerza <zack@redhat.com>
import os
import random
-import signal
from unittest.mock import patch, Mock
from teuthology import exit
-from teuthology.test import skipif_teuthology_process
class TestExiter(object):
self.patcher_kill.stop()
del self.m_kill
- @skipif_teuthology_process
- def test_noop(self):
- sig = 15
- obj = self.klass()
- assert len(obj.handlers) == 0
- assert signal.getsignal(sig) == 0
-
def test_basic(self):
sig = 15
obj = self.klass()