[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:57:22 EST 2018


https://github.com/python/cpython/commit/833a7067a4d5621d024511d9166db7331c4650c9
commit: 833a7067a4d5621d024511d9166db7331c4650c9
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-11-28T16:57:18-08:00
summary:

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>

files:
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'):
             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