]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30908: Fix dangling thread in test_os.TestSendfile (#2680) (#2844)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 24 Jul 2017 15:40:50 +0000 (17:40 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2017 15:40:50 +0000 (17:40 +0200)
commitbb33ccfc5a216eff753b10a8dc59ec0277f1e1fb
tree7b32be97e7233f68acdedd6186d0565d04383671
parent1daeb259799d0664c9453a3bd8e80411e65b52c9
bpo-30908: Fix dangling thread in test_os.TestSendfile (#2680) (#2844)

tearDown() now clears explicitly the self.server variable to make
sure that the thread is completely cleared when tearDownClass()
checks if all threads have been cleaned up.

Fix the following warning:

$ ./python -m test --fail-env-changed -m test.test_os.TestSendfile.test_keywords -R 3:1 test_os
(...)
Warning -- threading_cleanup() failed to cleanup 0 threads after 3 sec (count: 0, dangling: 2)
(...)
Tests result: ENV CHANGED
(cherry picked from commit d1cc037d1442cc35d1b194ec8e50901514360949)
Lib/test/test_os.py