]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
test_exit: Drop bad test_noop 1914/head
authorZack Cerza <zack@redhat.com>
Wed, 31 Jan 2024 01:56:19 +0000 (18:56 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 31 Jan 2024 02:00:06 +0000 (19:00 -0700)
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>
teuthology/test/test_exit.py

index 11125b937c5ceae146996d9310a80dc8f39f7b02..e8c22bf208821d7245d40a6ed542c4e8cbc592fe 100644 (file)
@@ -1,11 +1,9 @@
 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):
@@ -40,13 +38,6 @@ 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()