bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782)
test_eintr no longer fails if the signal handler has not been called.
(cherry picked from commit 2956bffbc0
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
This commit is contained in:
parent
d46d753d15
commit
2fa5b2ac44
|
@ -69,8 +69,6 @@ class EINTRBaseTest(unittest.TestCase):
|
|||
signal.signal(signal.SIGALRM, self.orig_handler)
|
||||
if hasattr(faulthandler, 'cancel_dump_traceback_later'):
|
||||
faulthandler.cancel_dump_traceback_later()
|
||||
# make sure that at least one signal has been received
|
||||
self.assertGreater(self.signals, 0)
|
||||
|
||||
def subprocess(self, *args, **kw):
|
||||
cmd_args = (sys.executable, '-c') + args
|
||||
|
|
Loading…
Reference in New Issue