]> granicus.if.org Git - python/commit
bpo-35189: Fix eintr_tester.py (GH-10637)
authorVictor Stinner <vstinner@redhat.com>
Wed, 21 Nov 2018 15:33:13 +0000 (16:33 +0100)
committerGitHub <noreply@github.com>
Wed, 21 Nov 2018 15:33:13 +0000 (16:33 +0100)
commitaac1f81eef971876ba5b1673db9ce6620311c469
tree8cc2935e2226572bc81bb28a6722d978acedf7ef
parent361e8683e7340c600b22f4a514b81448ccec66dc
bpo-35189: Fix eintr_tester.py (GH-10637)

Call setitimer() before each test method, instead of once per test
case, to ensure that signals are sent in each test method.
Previously, only the first method of a testcase class got signals.

Changes:

* Replace setUpClass() with setUp() and replace tearDownClass() with
  tearDown().
* tearDown() now ensures that at least one signal has been sent.
* Replace support.run_unittest() with unittest.main() which has
  a nicer CLI and automatically discover test cases.
Lib/test/eintrdata/eintr_tester.py