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

Victor Stinner webhook-mailer at python.org
Wed Nov 28 19:34:56 EST 2018

commit: 2956bffbc00127af65f69e04d7979021a21d1288
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2018-11-29T01:34:51+01: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.

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