]> granicus.if.org Git - python/commitdiff
bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782)
authorVictor Stinner <vstinner@redhat.com>
Thu, 29 Nov 2018 00:34:51 +0000 (01:34 +0100)
committerGitHub <noreply@github.com>
Thu, 29 Nov 2018 00:34:51 +0000 (01:34 +0100)
test_eintr no longer fails if the signal handler has not been called.

Lib/test/eintrdata/eintr_tester.py

index c2eaf0128a5f930afb3efb20472dd5dbc94bfd53..aa7cfd14d9f9c109ab855f41a7744224d49174c1 100644 (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