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:
Miss Islington (bot) 2018-11-28 16:52:11 -08:00 committed by GitHub
parent d46d753d15
commit 2fa5b2ac44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

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