[Python-checkins] bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782)

Miss Islington (bot) webhook-mailer at python.org
Wed Nov 28 19:52:16 EST 2018

commit: 2fa5b2ac4485c5c9083b4b0459dd9b691daaea28
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-11-28T16:52:11-08:00

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 2956bffbc00127af65f69e04d7979021a21d1288)

Co-authored-by: Victor Stinner <vstinner at redhat.com>

M Lib/test/eintrdata/eintr_tester.py

diff --git a/Lib/test/eintrdata/eintr_tester.py b/Lib/test/eintrdata/eintr_tester.py
index c2eaf0128a5f..aa7cfd14d9f9 100644
--- a/Lib/test/eintrdata/eintr_tester.py
+++ b/Lib/test/eintrdata/eintr_tester.py
@@ -69,8 +69,6 @@ def tearDown(self):
         signal.signal(signal.SIGALRM, self.orig_handler)
         if hasattr(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

More information about the Python-checkins mailing list