]> granicus.if.org Git - python/commit
bpo-30317, test_multiprocessing: fix test_timeout() (GH-7957)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 27 Jun 2018 09:33:35 +0000 (02:33 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Jun 2018 09:33:35 +0000 (02:33 -0700)
commit6abf8c171760209d95e8a1ff28c211ae541e29ce
tree5fbcf32efa1ad24d40649bf47feb113541f412c2
parent5d2d9d7c08819c7fbdfd7906858609e5070c20dd
bpo-30317, test_multiprocessing: fix test_timeout() (GH-7957)

Tolerate a different of 50 ms, instead of just 30 ms, in
test_timeout() of multiprocessing tests. This change should fix such
test failure on Windows:

FAIL: test_timeout (test.test_multiprocessing_spawn.WithProcessesTestQueue)
Traceback (most recent call last):
  File "lib\test\_test_multiprocessing.py", line 753, in test_timeout
    self.assertGreaterEqual(delta, 0.170)
AssertionError: 0.16138982772827148 not greater than or equal to 0.17
(cherry picked from commit f15f66d275d1166839312c9ff3a67c00b486c7d6)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/_test_multiprocessing.py